Ignore:
Timestamp:
01/12/12 15:34:55 (17 months ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
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)
Message:

[FIX] Several rebasing issues, user searches

  • Forced local user searches (faster);
  • Used canModify() to check event management permission;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/services/implementation/conference.py

    r38f650 r0819c2  
    994994        #If the chairperson needs to be given management rights 
    995995        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) 
    997998            if avl: 
    998999                av = avl[0] 
     
    10171018    def _getAnswer(self): 
    10181019        chair = self._conf.getChairById(self._chairId) 
    1019         # var to control if we have to show the checkbox to allow add to modification control list 
    1020         canModify = True 
    1021         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 = False 
    10241020        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 
    10261025        return result 
    10271026 
Note: See TracChangeset for help on using the changeset viewer.