def _checkProtection(self): if self._target.getConference().hasEnabledSection("paperReviewing"): ConferenceModifBase._checkProtection(self) else: raise ServiceError( "ERR-REV1a", _("Paper Reviewing is not active for this conference"))
def _checkCanManagePlugin(self, plugin): isAdminOnlyPlugin = CollaborationTools.isAdminOnlyPlugin(plugin) hasAdminRights = RCCollaborationAdmin.hasRights(self._getUser()) or RCCollaborationPluginAdmin.hasRights(self._getUser(), [plugin]) if not hasAdminRights and isAdminOnlyPlugin: raise CollaborationException(_("Cannot acces service of admin-only plugin if user is not admin, for event: ") + str(self._conf.getId()) + _(" with the service ") + str(self.__class__) ) elif not hasAdminRights and not RCVideoServicesManager.hasRights(self._getUser(), self._conf, [plugin]): #we check if it's an event creator / manager (this will call ConferenceModifBase._checkProtection) ConferenceModifBase._checkProtection(self)
def _checkCanManagePlugin(self, plugin): isAdminOnlyPlugin = CollaborationTools.isAdminOnlyPlugin(plugin) hasAdminRights = RCCollaborationAdmin.hasRights( self._getUser()) or RCCollaborationPluginAdmin.hasRights( self._getUser(), [plugin]) if not hasAdminRights and isAdminOnlyPlugin: raise CollaborationException( _("Cannot acces service of admin-only plugin if user is not admin, for event: " ) + str(self._conf.getId()) + _(" with the service ") + str(self.__class__)) elif not hasAdminRights and not RCVideoServicesManager.hasRights( self._getUser(), self._conf, [plugin]): #we check if it's an event creator / manager (this will call ConferenceModifBase._checkProtection) ConferenceModifBase._checkProtection(self)
def _checkProtection(self): if self._target.getConference().hasEnabledSection("paperReviewing"): ConferenceModifBase._checkProtection(self) else: raise ServiceError("ERR-REV1a",_("Paper Reviewing is not active for this conference"))
def _checkProtection(self): if not self._target.canManageRegistration(self.getAW().getUser()): ConferenceModifBase._checkProtection(self)
def _checkProtection(self): if not self._target.canManageRegistration(self.getAW().getUser()): ConferenceModifBase._checkProtection(self)