Merge lp:~mhall119/loco-team-portal/fixes-613057 into lp:loco-team-portal

Proposed by Michael Hall
Status: Merged
Merged at revision: 221
Proposed branch: lp:~mhall119/loco-team-portal/fixes-613057
Merge into: lp:loco-team-portal
Diff against target: 12 lines (+1/-1)
1 file modified
loco_directory/teams/views.py (+1/-1)
To merge this branch: bzr merge lp:~mhall119/loco-team-portal/fixes-613057
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+31753@code.launchpad.net

Description of the change

Treat LC members as admin

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Great work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/teams/views.py'
2--- loco_directory/teams/views.py 2010-08-02 12:43:32 +0000
3+++ loco_directory/teams/views.py 2010-08-04 13:34:45 +0000
4@@ -96,7 +96,7 @@
5 is_admin = False
6 if request.user.is_authenticated():
7 is_member = launchpad.is_team_member(request.user, team_object)
8- is_admin = launchpad.is_admin_or_owner(request.user.username, team_object)
9+ is_admin = launchpad.is_admin_or_owner(request.user.username, team_object) or launchpad.is_user_on_loco_council(request.user)
10 context = {
11 'team': team_object,
12 'is_member' : is_member,

Subscribers

People subscribed via source and target branches