set up restricted views client check
check restricted also in history