예제 #1
0
파일: __init__.py 프로젝트: vintas/indico
 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.'))
예제 #2
0
파일: controllers.py 프로젝트: jas01/indico
 def _check_access(self):
     RHProtected._check_access(self)
     if not self.user.can_be_modified(session.user):
         raise Forbidden('You cannot modify this user.')
예제 #3
0
 def _check_access(self):
     RHProtected._check_access(self)
     if not is_vc_support(session.user):
         raise Forbidden
예제 #4
0
 def _check_access(self):
     RHProtected._check_access(self)
     SpecificTemplateMixin._check_access(self)
예제 #5
0
 def _check_access(self):
     RHProtected._check_access(self)
     if not self.user.can_be_modified(session.user):
         raise Forbidden('You cannot modify this user.')
예제 #6
0
 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
예제 #8
0
 def _check_access(self):
     RHProtected._check_access(self)
     if not is_av_manager(session.user):
         raise Forbidden
예제 #9
0
파일: event.py 프로젝트: qroques/indico
 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)
예제 #10
0
 def _check_access(self):
     RHProtected._check_access(self)
     if not get_managed_vc_plugins(session.user):
         raise Forbidden
예제 #11
0
 def _check_access(self):
     RHProtected._check_access(self)
     SpecificTemplateMixin._check_access(self)
예제 #12
0
파일: __init__.py 프로젝트: jas01/indico
 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.'))
예제 #13
0
파일: base.py 프로젝트: bkolobara/indico
 def _check_access(self):
     RHProtected._check_access(self)
     if not session.user.is_admin:
         raise Forbidden(_("Only Indico administrators may access this page."))
예제 #14
0
 def _check_access(self):
     RHProtected._check_access(self)
     if not get_managed_vc_plugins(session.user):
         raise Forbidden