Changeset 0819c2 in indico for indico/MaKaC/services/implementation/conference.py
- Timestamp:
- 01/12/12 15:34:55 (17 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 00b052b1a13a63c5c79db7f3ad310f643651dc50
- Children:
- 8cf945c
- Parents:
- 7910eb
- git-author:
- Pedro Ferreira <jose.pedro.ferreira@…> (08/16/11 11:01:04)
- git-committer:
- Jose Benito <jose.benito.gonzalez@…> (01/12/12 15:34:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/services/implementation/conference.py
r38f650 r0819c2 994 994 #If the chairperson needs to be given management rights 995 995 if self._userData.get("manager", None): 996 avl = AvatarHolder().match({"email": self._userData.get("email", "")}) 996 avl = AvatarHolder().match({"email": self._userData.get("email", "")}, 997 forceWithoutExtAuth=True, exact=True) 997 998 if avl: 998 999 av = avl[0] … … 1017 1018 def _getAnswer(self): 1018 1019 chair = self._conf.getChairById(self._chairId) 1019 # var to control if we have to show the checkbox to allow add to modification control list1020 canModify = True1021 av = AvatarHolder().match({"email": chair.getEmail()})1022 if (not av or not av[0] in self._conf.getManagerList()) and not chair.getEmail() in self._conf.getAccessController().getModificationEmail():1023 canModify = False1024 1020 result = fossilize(chair) 1025 result["canModify"] = canModify 1021 1022 av = AvatarHolder().match({"email": chair.getEmail()}, 1023 forceWithoutExtAuth=True, exact=True) 1024 result['canModify'] = self._conf.getAccessController().canModify(av[0]) if av else False 1026 1025 return result 1027 1026
Note: See TracChangeset
for help on using the changeset viewer.
