Michael Hall has proposed merging lp:~mhall119/loco-directory/fixes-613057 into
lp:loco-directory.
Requested reviews:
loco-directory-dev (loco-directory-dev)
Related bugs:
#613057 team page: no edit button for members of loco council
https://bugs.launchpad.net/bugs/613057
Treat LC members as admin
--
https://code.launchpad.net/~mhall119/loco-directory/fixes-613057/+merge/31753
Your team loco-directory-dev is requested to review the proposed merge of
lp:~mhall119/loco-directory/fixes-613057 into lp:loco-directory.
=== modified file 'loco_directory/teams/views.py'
--- loco_directory/teams/views.py 2010-08-02 12:43:32 +0000
+++ loco_directory/teams/views.py 2010-08-04 13:34:45 +0000
@@ -96,7 +96,7 @@
is_admin = False
if request.user.is_authenticated():
is_member = launchpad.is_team_member(request.user, team_object)
- is_admin = launchpad.is_admin_or_owner(request.user.username, team_object)
+ is_admin = launchpad.is_admin_or_owner(request.user.username, team_object) or launchpad.is_user_on_loco_council(request.user)
context = {
'team': team_object,
'is_member' : is_member,
_______________________________________________
Mailing list: https://launchpad.net/~loco-directory-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~loco-directory-dev
More help : https://help.launchpad.net/ListHelp