##// 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 # permission check in data loading of
52 # permission check in data loading of
53 # `user_groups_list_data` via UserGroupList
53 # `user_groups_list_data` via UserGroupList
54 @LoginRequired()
54 @NotAnonymous()
55 @NotAnonymous()
55 @view_config(
56 @view_config(
56 route_name='user_groups', request_method='GET',
57 route_name='user_groups', request_method='GET',
@@ -60,6 +61,7 b' class AdminUserGroupsView(BaseAppView, D'
60 return self._get_template_context(c)
61 return self._get_template_context(c)
61
62
62 # permission check inside
63 # permission check inside
64 @LoginRequired()
63 @NotAnonymous()
65 @NotAnonymous()
64 @view_config(
66 @view_config(
65 route_name='user_groups_data', request_method='GET',
67 route_name='user_groups_data', request_method='GET',
@@ -69,6 +69,7 b' class AdminUsersView(BaseAppView, DataGr'
69 # is a pyramid view
69 # is a pyramid view
70 raise HTTPFound('/')
70 raise HTTPFound('/')
71
71
72 @LoginRequired()
72 @HasPermissionAllDecorator('hg.admin')
73 @HasPermissionAllDecorator('hg.admin')
73 @view_config(
74 @view_config(
74 route_name='users', request_method='GET',
75 route_name='users', request_method='GET',
@@ -77,6 +78,7 b' class AdminUsersView(BaseAppView, DataGr'
77 c = self.load_default_context()
78 c = self.load_default_context()
78 return self._get_template_context(c)
79 return self._get_template_context(c)
79
80
81 @LoginRequired()
80 @HasPermissionAllDecorator('hg.admin')
82 @HasPermissionAllDecorator('hg.admin')
81 @view_config(
83 @view_config(
82 # renderer defined below
84 # renderer defined below
General Comments 0
You need to be logged in to leave comments. Login now