Пример #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)