add user checks for analysis
update docstring
use has_access to check analysis access on pages
fix which id getting checked
Merge pull request #539 from squirrelo/add-user-access-checks

Add user access checks