Fix an access bug
Instead of 'show' the keyword 'public' was used, which is no longer
used for access checks.
Patch by: Sverre Rabbelier
--- a/app/soc/views/models/club_app.py Mon Mar 09 16:34:54 2009 +0000
+++ b/app/soc/views/models/club_app.py Mon Mar 09 19:37:23 2009 +0000
@@ -56,7 +56,7 @@
[club_app_logic.logic])]
rights['list'] = ['checkIsDeveloper']
rights['list_self'] = ['checkIsUser']
- rights['public'] = [('checkCanEditGroupApp',
+ rights['show'] = [('checkCanEditGroupApp',
[club_app_logic.logic])]
# TODO(ljvderijk) make sure host role check is fixed
rights['review'] = [('checkHasActiveRoleForScope', host_logic.logic),
--- a/app/soc/views/models/org_app.py Mon Mar 09 16:34:54 2009 +0000
+++ b/app/soc/views/models/org_app.py Mon Mar 09 19:37:23 2009 +0000
@@ -64,7 +64,7 @@
('checkIsActivePeriod', ['org_signup', 'scope_path'])]
rights['list'] = ['checkIsDeveloper']
rights['list_self'] = ['checkIsUser']
- rights['public'] = [('checkCanEditGroupApp',
+ rights['show'] = [('checkCanEditGroupApp',
[org_app_logic.logic])]
rights['review'] = ['checkIsHostForProgramInScope',
('checkCanReviewGroupApp', [org_app_logic.logic])]