check permission to edit page