Esempio n. 1
0
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
         return
     RHSubmitMaterialBase._checkProtection(self)
Esempio n. 2
0
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate=False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
         return
     RHSubmitMaterialBase._checkProtection(self)
Esempio n. 3
0
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
     elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False) and self._target.getReviewManager().getLastReview().isAuthorSubmitted()):
         RHSubmitMaterialBase._checkProtection(self)
     else:
         self._loggedIn = True
Esempio n. 4
0
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
     # status = 3 means the paper is under review (submitted but not reviewed)
     # status = 2 means that the author has not yet submitted the material
     elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False) and  self._target.getReviewing().getReviewingState() in [2, 3]):
         RHSubmitMaterialBase._checkProtection(self)
     else:
         self._loggedIn = True
Esempio n. 5
0
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate=False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
     elif not (RCContributionPaperReviewingStaff.hasRights(
             self, includingContentReviewer=False) and self._target.
               getReviewManager().getLastReview().isAuthorSubmitted()):
         RHSubmitMaterialBase._checkProtection(self)
     else:
         self._loggedIn = True
Esempio n. 6
0
 def _checkProtection(self):
     material, _ = self._getMaterial(forceCreate = False)
     if self._target.canUserSubmit(self._aw.getUser()) \
         and (not material or material.getReviewingState() < 3):
         self._loggedIn = True
     # status = 3 means the paper is under review (submitted but not reviewed)
     # status = 2 means that the author has not yet submitted the material
     elif not (RCContributionPaperReviewingStaff.hasRights(self, includingContentReviewer=False)
               and self._target.getReviewing() and self._target.getReviewing().getReviewingState() in (2, 3)):
         RHSubmitMaterialBase._checkProtection(self)
     else:
         self._loggedIn = True