Exemplo n.º 1
0
    def _checkProtection(self):
        if not PluginsHolder().hasPluginType("Collaboration"):
            raise PluginError("Collaboration plugin system is not active")

        if not RCCollaborationAdmin.hasRights(self, None) and not RCCollaborationPluginAdmin.hasRights(
            self, plugins="any"
        ):  # RCCollaborationPluginAdmin.hasRights(self, None, self._tabPlugins):
            RHAdminBase._checkProtection(self)
Exemplo n.º 2
0
    def _checkProtection(self):
        if not PluginsHolder().hasPluginType("Collaboration"):
            raise PluginError("Collaboration plugin system is not active")

        if not RCCollaborationAdmin.hasRights(
                self, None
        ) and not RCCollaborationPluginAdmin.hasRights(
                self, plugins="any"
        ):  #RCCollaborationPluginAdmin.hasRights(self, None, self._tabPlugins):
            RHAdminBase._checkProtection(self)
Exemplo n.º 3
0
    def _checkProtection( self ):

        if not RCCollaborationAdmin.hasRights(self._getUser()) and \
           not RCCollaborationPluginAdmin.hasRights(self._getUser(), plugins="any"):
            RHAdminBase._checkProtection(self)
Exemplo n.º 4
0
    def _checkProtection(self):

        if not RCCollaborationAdmin.hasRights(self._getUser()) and \
           not RCCollaborationPluginAdmin.hasRights(self._getUser(), plugins="any"):
            RHAdminBase._checkProtection(self)