def _check_access(self): if not config.ENABLE_ROOMBOOKING: raise NotFound(_('The room booking module is not enabled.')) RHProtected._check_access(self) if not rb_check_user_access(session.user): raise Forbidden( _('You are not authorized to access the room booking system.'))
def _check_access(self): RHProtected._check_access(self) if not self.user.can_be_modified(session.user): raise Forbidden('You cannot modify this user.')
def _check_access(self): RHProtected._check_access(self) if not is_vc_support(session.user): raise Forbidden
def _check_access(self): RHProtected._check_access(self) SpecificTemplateMixin._check_access(self)
def _check_access(self): RHProtected._check_access(self) if not session.user.is_admin: raise Forbidden( _("Only Indico administrators may access this page."))
def _check_access(self): RHProtected._check_access(self) if not is_room_assistance_support(session.user): raise Forbidden
def _check_access(self): RHProtected._check_access(self) if not is_av_manager(session.user): raise Forbidden
def _check_access(self): RHProtected._check_access(self) if not can_manage_attachments(self.object, session.user): raise Forbidden check_event_locked(self, self.event)
def _check_access(self): RHProtected._check_access(self) if not get_managed_vc_plugins(session.user): raise Forbidden
def _require_user(self): if not config.ENABLE_ROOMBOOKING: raise NotFound(_('The room booking module is not enabled.')) RHProtected._require_user(self) if not rb_check_user_access(session.user): raise Forbidden(_('You are not authorized to access the room booking system.'))
def _check_access(self): RHProtected._check_access(self) if not session.user.is_admin: raise Forbidden(_("Only Indico administrators may access this page."))