rename method from requireLogin to checkPermission