Beispiel #1
0
 def _checkProtection(self):
     if self._target.canModify( self.getAW() ):
         RHModificationBaseProtected._checkProtection(self)
         return
     else:
         self._doProcess = False
         self._redirect(urlHandlers.UHCategoryDisplay.getURL(self._target))
Beispiel #2
0
 def _checkProtection(self):
     if self._target.canModify( self.getAW() ):
         RHModificationBaseProtected._checkProtection(self)
         return
     else:
         self._doProcess = False
         self._redirect(urlHandlers.UHCategoryDisplay.getURL(self._target))
 def _checkProtection( self ):
     target = self._target
     try:
         self._target = self._conf
         RHModificationBaseProtected._checkProtection(self)
     finally:
         self._target = target
     CFAEnabled.checkEnabled(self)
Beispiel #4
0
 def _checkProtection( self ):
     RHModificationBaseProtected._checkProtection( self )
Beispiel #5
0
 def _checkProtection(self):
     RHModificationBaseProtected._checkProtection(self)
Beispiel #6
0
 def _checkProtection( self ):
     if self._material.getSession() != None:
         if self._material.getSession().canCoordinate(self.getAW(), "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection( self )
Beispiel #7
0
 def _checkProtection(self):
     if self._conf.id == 'default':
         if not session.user or not session.user.is_admin:
             raise Forbidden
     else:
         RHModificationBaseProtected._checkProtection(self)
Beispiel #8
0
 def _checkProtection(self):
     owner = self._target.getContribution()
     if owner.getSession() != None:
         if owner.getSession().canCoordinate(self.getAW(), "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection(self)
Beispiel #9
0
 def _checkProtection(self):
     owner = self._target.getContribution()
     if owner.getSession() != None:
         if owner.getSession().canCoordinate(self.getAW(), "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection(self)
Beispiel #10
0
 def _checkProtection( self ):
     RHModificationBaseProtected._checkProtection( self )
     CFAEnabled.checkEnabled(self)
Beispiel #11
0
 def _checkProtection(self):
     RHModificationBaseProtected._checkProtection(self)
     CFAEnabled.checkEnabled(self)
Beispiel #12
0
 def _checkProtection(self):
     if self._link.getSession() != None:
         if self._link.getSession().canCoordinate(self.getAW(),
                                                  "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection(self)