##// END OF EJS Templates
auth: added @LoginRequired() decorators for user/user_group views....
marcink -
r2001:844b6602 default
parent child Browse files
Show More
@@ -51,6 +51,7 b' class AdminUserGroupsView(BaseAppView, D'
51 51
52 52 # permission check in data loading of
53 53 # `user_groups_list_data` via UserGroupList
54 @LoginRequired()
54 55 @NotAnonymous()
55 56 @view_config(
56 57 route_name='user_groups', request_method='GET',
@@ -60,6 +61,7 b' class AdminUserGroupsView(BaseAppView, D'
60 61 return self._get_template_context(c)
61 62
62 63 # permission check inside
64 @LoginRequired()
63 65 @NotAnonymous()
64 66 @view_config(
65 67 route_name='user_groups_data', request_method='GET',
@@ -69,6 +69,7 b' class AdminUsersView(BaseAppView, DataGr'
69 69 # is a pyramid view
70 70 raise HTTPFound('/')
71 71
72 @LoginRequired()
72 73 @HasPermissionAllDecorator('hg.admin')
73 74 @view_config(
74 75 route_name='users', request_method='GET',
@@ -77,6 +78,7 b' class AdminUsersView(BaseAppView, DataGr'
77 78 c = self.load_default_context()
78 79 return self._get_template_context(c)
79 80
81 @LoginRequired()
80 82 @HasPermissionAllDecorator('hg.admin')
81 83 @view_config(
82 84 # renderer defined below
General Comments 0
You need to be logged in to leave comments. Login now