Check users permission for page access.