예제 #1
0
파일: category.py 프로젝트: stomanin/indico
 def _checkProtection(self):
     RHCategModifBase._checkProtection(self)
     # This is already covered by CategModifBase, but if we ever add more
     # checks to can_manage_attachments we are on the safe side...
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden
예제 #2
0
 def _checkProtection(self):
     RHCategModifBase._checkProtection(self)
     # This is already covered by CategModifBase, but if we ever add more
     # checks to can_manage_attachments we are on the safe side...
     if not can_manage_attachments(self.object, session.user):
         raise Forbidden