示例#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
 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.'))