Only a club admin should see resign as club admin in the sidebar.
authorLennard de Rijk <ljvderijk@gmail.com>
Fri, 13 Feb 2009 11:46:06 +0000
changeset 1293 d5ea34c4fc43
parent 1292 cf8b099bd787
child 1294 359987b7027d
Only a club admin should see resign as club admin in the sidebar. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/views/models/club.py
--- a/app/soc/views/models/club.py	Thu Feb 12 23:35:44 2009 +0000
+++ b/app/soc/views/models/club.py	Fri Feb 13 11:46:06 2009 +0000
@@ -179,6 +179,7 @@
           "Create a New Document", 'any_access')
       submenus.append(submenu)
 
+    if roles.get('club_admin'):
       # add a link to resign as club admin
       submenu = (redirects.getManageRedirect(roles['club_admin'], 
           {'url_name': 'club_admin'}),