Changeset 0e0c28 in indico
- Timestamp:
- 12/03/09 18:37:08 (4 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
- Children:
- df3d1f
- Parents:
- 5db6c7
- Location:
- indico/MaKaC
- Files:
-
- 5 edited
-
services/implementation/collaboration.py (modified) (1 diff)
-
webinterface/pages/collaboration.py (modified) (1 diff)
-
webinterface/rh/collaboration.py (modified) (3 diffs)
-
webinterface/rh/conferenceDisplay.py (modified) (1 diff)
-
webinterface/wcomponents.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/services/implementation/collaboration.py
r8126f9 r0e0c28 237 237 """ 238 238 """ 239 240 def _checkProtection(self): 241 if not RCCollaborationPluginAdmin.hasRights(self, None, "any"): 242 AdminCollaborationBase._checkProtection(self) 243 239 244 def _checkParams(self): 240 245 AdminCollaborationBase._checkParams(self) -
indico/MaKaC/webinterface/pages/collaboration.py
r160fdf r0e0c28 374 374 if b.canBeStarted(): 375 375 ongoingBookings.append(b) 376 if b.get AdjustedStartDate('UTC') > nowutc():376 if b.getStartDate() and b.getAdjustedStartDate('UTC') > nowutc(): 377 377 scheduledBookings.setdefault(b.getAdjustedStartDate(self._tz).date(), []).append(b) 378 378 -
indico/MaKaC/webinterface/rh/collaboration.py
r7f8da8 r0e0c28 59 59 """ Returns True if the user is an admin of one of the plugins corresponding to pluginNames 60 60 plugins: a list of Plugin objects (e.g. EVO, RecordingRequest) or strings with the plugin name ('EVO', 'RecordingRequest') 61 or the string 'any' (we will then check if the user is manager of any plugin), 61 62 """ 62 63 if not PluginsHolder().hasPluginType("Collaboration"): … … 70 71 71 72 coll = PluginsHolder().getPluginType('Collaboration') 73 74 if plugins == 'any': 75 plugins = [] 76 for p in CollaborationTools.getCollaborationPluginType().getPluginList(): 77 plugins.append(p.getName()) 72 78 73 79 if plugins: … … 142 148 if not PluginsHolder().hasPluginType("Collaboration"): 143 149 raise PluginError("Collaboration plugin system is not active") 144 if not RCCollaborationAdmin.hasRights(self, None): #and not RCCollaborationPluginAdmin.hasRights(self, None, self._tabPlugins) 150 151 if not RCCollaborationAdmin.hasRights(self, None) and not RCCollaborationPluginAdmin.hasRights(self, plugins = "any"): #RCCollaborationPluginAdmin.hasRights(self, None, self._tabPlugins): 145 152 RHAdminBase._checkProtection(self) 146 153 -
indico/MaKaC/webinterface/rh/conferenceDisplay.py
r931922 r0e0c28 392 392 393 393 def _checkProtection( self ): 394 RHDisplayBaseProtected._checkProtection( self ) 394 from MaKaC.webinterface.rh.collaboration import RCCollaborationAdmin, RCCollaborationPluginAdmin 395 if not RCCollaborationAdmin.hasRights(self, None) and \ 396 not RCCollaborationPluginAdmin.hasRights(self, plugins = "any"): 397 RHDisplayBaseProtected._checkProtection( self ) 395 398 396 399 -
indico/MaKaC/webinterface/wcomponents.py
rc174b7 r0e0c28 365 365 adminItemList.append({'url': urlHandlers.UHAdminArea.getURL(), 'text': _("Server admin")}) 366 366 if PluginsHolder().hasPluginType("Collaboration"): 367 from MaKaC.webinterface.rh.collaboration import RCCollaborationAdmin 368 if (self._currentuser.isAdmin() or RCCollaborationAdmin.hasRights(user = self._currentuser) ) and CollaborationTools.anyPluginsAreActive():367 from MaKaC.webinterface.rh.collaboration import RCCollaborationAdmin, RCCollaborationPluginAdmin 368 if (self._currentuser.isAdmin() or RCCollaborationAdmin.hasRights(user = self._currentuser) or RCCollaborationPluginAdmin.hasRights(user = self._currentuser, plugins = "any")) and CollaborationTools.anyPluginsAreActive(): 369 369 adminItemList.append({'url': urlHandlers.UHAdminCollaboration.getURL(), 'text': _("Video Services Overview")}) 370 370 if webcast.HelperWebcastManager.getWebcastManagerInstance().isManager(self._currentuser):
Note: See TracChangeset
for help on using the changeset viewer.
