示例#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))
示例#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))
示例#3
0
 def _checkProtection( self ):
     target = self._target
     try:
         self._target = self._conf
         RHModificationBaseProtected._checkProtection(self)
     finally:
         self._target = target
     CFAEnabled.checkEnabled(self)
示例#4
0
 def _checkProtection( self ):
     RHModificationBaseProtected._checkProtection( self )
示例#5
0
 def _checkProtection(self):
     RHModificationBaseProtected._checkProtection(self)
示例#6
0
 def _checkProtection( self ):
     if self._material.getSession() != None:
         if self._material.getSession().canCoordinate(self.getAW(), "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection( self )
示例#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)
示例#8
0
 def _checkProtection(self):
     owner = self._target.getContribution()
     if owner.getSession() != None:
         if owner.getSession().canCoordinate(self.getAW(), "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection(self)
示例#9
0
 def _checkProtection(self):
     owner = self._target.getContribution()
     if owner.getSession() != None:
         if owner.getSession().canCoordinate(self.getAW(), "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection(self)
示例#10
0
 def _checkProtection( self ):
     RHModificationBaseProtected._checkProtection( self )
     CFAEnabled.checkEnabled(self)
示例#11
0
 def _checkProtection(self):
     RHModificationBaseProtected._checkProtection(self)
     CFAEnabled.checkEnabled(self)
示例#12
0
 def _checkProtection(self):
     if self._link.getSession() != None:
         if self._link.getSession().canCoordinate(self.getAW(),
                                                  "modifContribs"):
             return
     RHModificationBaseProtected._checkProtection(self)