view_history_threshold check added to see if user has right to see
history.

Signed-off-by: Laszlo Kovacs <winston01@freemail.hu>