コード例 #1
0
ファイル: users.py プロジェクト: jbenito3/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not self._doProcess:
         # Logged-in check failed
         return
     if not self._avatar.canUserModify(self._getUser()):
         raise errors.AccessControlError("user")
コード例 #2
0
ファイル: admins.py プロジェクト: VishrutMehta/indico
 def _checkProtection( self ):
     RHProtected._checkProtection( self )
     self._al = self._minfo.getAdminList()
     if not self._al.isAdmin( self._getUser() ):
         if self._getUser() != None and len( self._al.getList() )==0:
             return
         raise AdminError("area")
コード例 #3
0
ファイル: admins.py プロジェクト: NIIF/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not session.user and not self._doProcess:
         return
     self._al = HelperMaKaCInfo.getMaKaCInfoInstance().getAdminList()
     if not session.user.isAdmin():
         if not self._al.getList():  # XXX can we just fail here instead of pretending the user is an admin?!
             return
         raise AdminError("area")
コード例 #4
0
ファイル: users.py プロジェクト: aninhalacerda/indico
 def _checkProtection( self ):
     RHProtected._checkSessionUser( self )
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
コード例 #5
0
ファイル: admins.py プロジェクト: belokop/indico_bare
 def _checkParams(self, params):
     RHProtected._checkParams(self, params)
     self._minfo = HelperMaKaCInfo.getMaKaCInfoInstance()
コード例 #6
0
ファイル: groups.py プロジェクト: NIIF/indico
 def _checkProtection( self ):
     if self._group.getMemberList() == []:
         return
     RHProtected._checkProtection( self )
     if not self._group.canModify( self._aw ):
         raise errors.ModificationError("group")
コード例 #7
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.'))
コード例 #8
0
ファイル: services.py プロジェクト: aninhalacerda/indico
 def _checkProtection( self ):
     RHProtected._checkProtection( self )
     self._al = self._minfo.getAdminList()
     self._wm = webcast.HelperWebcastManager.getWebcastManagerInstance()
     if not self._wm.isManager( self._getUser() ) and not self._al.isAdmin( self._getUser() ):
         raise WebcastAdminError("management area")
コード例 #9
0
ファイル: users.py プロジェクト: sylvestre/indico
    def _checkProtection(self):

        RHProtected._checkProtection(self)
        if not self._avatar.canUserModify(self._getUser()):
            raise errors.AccessControlError("user")
コード例 #10
0
ファイル: users.py プロジェクト: sylvestre/indico
 def _checkProtection(self):
     RHProtected._checkSessionUser(self)
     if not self._aw.getUser():
         raise errors.AccessControlError("user")
コード例 #11
0
ファイル: controllers.py プロジェクト: stomanin/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not self._doProcess:  # not logged in
         return
     if not self.user.can_be_modified(session.user):
         raise Forbidden('You cannot modify this user.')
コード例 #12
0
ファイル: users.py プロジェクト: lukasnellen/indico
    def _checkProtection(self):

        RHProtected._checkProtection(self)
        if not self._avatar.canUserModify(self._getUser()):
            raise ModificationError("user")
コード例 #13
0
ファイル: groups.py プロジェクト: lukasnellen/indico
 def _checkProtection(self):
     if self._group.getMemberList() == []:
         return
     RHProtected._checkProtection(self)
     if not self._group.canModify(self._aw):
         raise errors.ModificationError("group")
コード例 #14
0
ファイル: controllers.py プロジェクト: marcosmolla/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if self._doProcess and not get_managed_vc_plugins(session.avatar):
         raise AccessError
コード例 #15
0
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not get_managed_vc_plugins(session.user):
         raise Forbidden
コード例 #16
0
ファイル: event.py プロジェクト: MichelCordeiro/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden
コード例 #17
0
 def _checkParams( self, params ):
     RHProtected._checkParams( self, params )
     self._minfo = HelperMaKaCInfo.getMaKaCInfoInstance()
コード例 #18
0
ファイル: controllers.py プロジェクト: fph/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not self._doProcess:  # not logged in
         return
     if not self.user.can_be_modified(session.user):
         raise Forbidden('You cannot modify this user.')
コード例 #19
0
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden
コード例 #20
0
ファイル: admins.py プロジェクト: belokop/indico_bare
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not session.user and not self._doProcess:
         return
     if not session.user.is_admin:
         raise Forbidden(_("Only Indico administrators may access this page."))
コード例 #21
0
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not session.user and not self._doProcess:
         return
     if not session.user.is_admin:
         raise AdminError("area")
コード例 #22
0
ファイル: users.py プロジェクト: aninhalacerda/indico
    def _checkProtection( self ):

        RHProtected._checkProtection( self )
        if not self._avatar.canUserModify( self._getUser() ):
            raise ModificationError("user")
コード例 #23
0
ファイル: users.py プロジェクト: arturodr/indico
    def _checkProtection( self ):

        RHProtected._checkProtection( self )
        if not self._avatar.canUserModify( self._getUser() ):
            raise errors.AccessControlError("user")
コード例 #24
0
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not get_managed_vc_plugins(session.user):
         raise Forbidden
コード例 #25
0
ファイル: admins.py プロジェクト: marcosmolla/indico
 def _checkProtection(self):
     RHProtected._checkProtection(self)
     if not session.avatar and not self._doProcess:
         return
     if not session.user.is_admin:
         raise AdminError("area")