예제 #1
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if self._target.getConference().getConfPaperReview().getChoice() == CPR.NO_REVIEWING:
             raise MaKaCError(_("Type of reviewing has not been chosen yet"))
         elif not (RCPaperReviewManager.hasRights(self) or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self);
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
예제 #2
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if not (RCPaperReviewManager.hasRights(self)
                 or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self)
     else:
         raise MaKaCError(
             _("Paper Reviewing is not active for this conference"))
예제 #3
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if self._target.getConference().getConfPaperReview().getChoice() == CPR.NO_REVIEWING:
             raise MaKaCError(_("Type of reviewing has not been chosen yet"))
         elif not (RCPaperReviewManager.hasRights(self) or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self);
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
예제 #4
0
    def _checkProtection(self):
        if self._target.getConference().hasEnabledSection("paperReviewing"):
            hasRights = False
            if self._current == 'refereeJudgement':
                hasRights =  RCContributionReferee.hasRights(self)
            elif self._current == 'editorJudgement':
                hasRights =  RCContributionEditor.hasRights(self)
            elif self._current == 'reviewerJudgement':
                hasRights = RCContributionReviewer.hasRights(self)

            if not hasRights and not RCPaperReviewManager.hasRights(self):
                ProtectedModificationService._checkProtection(self)
        else:
            raise ServiceError("ERR-REV1b",_("Paper Reviewing is not active for this conference"))
예제 #5
0
    def _checkProtection(self):
        if self._target.getConference().hasEnabledSection("paperReviewing"):
            hasRights = False
            if self._current == 'refereeJudgement':
                hasRights =  RCContributionReferee.hasRights(self)
            elif self._current == 'editorJudgement':
                hasRights =  RCContributionEditor.hasRights(self)
            elif self._current == 'reviewerJudgement':
                hasRights = RCContributionReviewer.hasRights(self)

            if not hasRights and not RCPaperReviewManager.hasRights(self):
                ProtectedModificationService._checkProtection(self)
        else:
            raise ServiceError("ERR-REV1b",_("Paper Reviewing is not active for this conference"))
예제 #6
0
    def _checkProtection(self):
        if self._target.event_new.as_legacy.hasEnabledSection("paperReviewing"):
            hasRights = False
            if self._current == 'refereeJudgement':
                hasRights =  RCContributionReferee.hasRights(self)
            elif self._current == 'editorJudgement':
                hasRights =  RCContributionEditor.hasRights(self)
            elif self._current == 'reviewerJudgement':
                hasRights = RCContributionReviewer.hasRights(self)

            if not hasRights and not RCPaperReviewManager.hasRights(self):
                if not self._target.can_manage(session.user):
                    raise ServiceAccessError("You don't have the rights to modify this object")
        else:
            raise ServiceError("ERR-REV1b",_("Paper Reviewing is not active for this conference"))
예제 #7
0
    def _checkProtection(self):
        if self._target.event_new.as_legacy.hasEnabledSection("paperReviewing"):
            hasRights = False
            if self._current == 'refereeJudgement':
                hasRights =  RCContributionReferee.hasRights(self)
            elif self._current == 'editorJudgement':
                hasRights =  RCContributionEditor.hasRights(self)
            elif self._current == 'reviewerJudgement':
                hasRights = RCContributionReviewer.hasRights(self)

            if not hasRights and not RCPaperReviewManager.hasRights(self):
                if not self._target.can_manage(session.user):
                    raise ServiceAccessError("You don't have the rights to modify this object")
        else:
            raise ServiceError("ERR-REV1b",_("Paper Reviewing is not active for this conference"))
예제 #8
0
 def _checkProtection(self):
     if self._target.getConference().hasEnabledSection("paperReviewing"):
         if not (RCPaperReviewManager.hasRights(self) or RCContributionReferee.hasRights(self)):
             RHContribModifBase._checkProtection(self);
     else:
         raise MaKaCError(_("Paper Reviewing is not active for this conference"))
예제 #9
0
 def _checkProtection(self):
     if not RCContributionReferee.hasRights(self):
         RHContribModifBase._checkProtection(self);
예제 #10
0
 def _checkProtection(self):
     if not RCContributionReferee.hasRights(self):
         RHContribModifBase._checkProtection(self)