コード例 #1
0
 def _checkSessionUser(self):
     if not Config.getInstance().getIsRoomBookingActive():
         raise NotFound(_('The room booking module is not enabled.'))
     RHProtected._checkSessionUser(self)
     if not rb_check_user_access(session.user):
         raise Forbidden(
             _('Your are not authorized to access the room booking system.')
         )
コード例 #2
0
ファイル: users.py プロジェクト: aninhalacerda/indico
 def _checkProtection( self ):
     RHProtected._checkSessionUser( self )
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
コード例 #3
0
ファイル: users.py プロジェクト: arturodr/indico
 def _checkProtection(self):
     RHProtected._checkSessionUser(self)
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
コード例 #4
0
ファイル: __init__.py プロジェクト: OmeGak/indico
 def _checkSessionUser(self):
     if not Config.getInstance().getIsRoomBookingActive():
         raise NotFound(_('The room booking module is not enabled.'))
     RHProtected._checkSessionUser(self)
     if not rb_check_user_access(session.user):
         raise Forbidden(_('Your are not authorized to access the room booking system.'))