Show More
@@ -27,6 +27,7 b' from pyramid.view import view_config' | |||||
27 | from pyramid.renderers import render |
|
27 | from pyramid.renderers import render | |
28 | from pyramid.response import Response |
|
28 | from pyramid.response import Response | |
29 |
|
29 | |||
|
30 | from rhodecode import events | |||
30 | from rhodecode.apps._base import BaseAppView, DataGridAppView |
|
31 | from rhodecode.apps._base import BaseAppView, DataGridAppView | |
31 |
|
32 | |||
32 | from rhodecode.lib.ext_json import json |
|
33 | from rhodecode.lib.ext_json import json | |
@@ -200,6 +201,7 b' class AdminRepoGroupsView(BaseAppView, D' | |||||
200 | % repo_group_name, category='error') |
|
201 | % repo_group_name, category='error') | |
201 | raise HTTPFound(h.route_path('home')) |
|
202 | raise HTTPFound(h.route_path('home')) | |
202 |
|
203 | |||
|
204 | events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id])) | |||
203 | raise HTTPFound( |
|
205 | raise HTTPFound( | |
204 | h.route_path('repo_group_home', |
|
206 | h.route_path('repo_group_home', | |
205 | repo_group_name=form_result['group_name_full'])) |
|
207 | repo_group_name=form_result['group_name_full'])) |
@@ -27,6 +27,7 b' from pyramid.view import view_config' | |||||
27 | from pyramid.renderers import render |
|
27 | from pyramid.renderers import render | |
28 | from pyramid.response import Response |
|
28 | from pyramid.response import Response | |
29 |
|
29 | |||
|
30 | from rhodecode import events | |||
30 | from rhodecode.apps._base import BaseAppView, DataGridAppView |
|
31 | from rhodecode.apps._base import BaseAppView, DataGridAppView | |
31 | from rhodecode.lib.celerylib.utils import get_task_id |
|
32 | from rhodecode.lib.celerylib.utils import get_task_id | |
32 |
|
33 | |||
@@ -175,6 +176,8 b' class AdminReposView(BaseAppView, DataGr' | |||||
175 | h.flash(msg, category='error') |
|
176 | h.flash(msg, category='error') | |
176 | raise HTTPFound(h.route_path('home')) |
|
177 | raise HTTPFound(h.route_path('home')) | |
177 |
|
178 | |||
|
179 | events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id])) | |||
|
180 | ||||
178 | raise HTTPFound( |
|
181 | raise HTTPFound( | |
179 | h.route_path('repo_creating', |
|
182 | h.route_path('repo_creating', | |
180 | repo_name=form_result['repo_name_full'], |
|
183 | repo_name=form_result['repo_name_full'], |
@@ -28,6 +28,7 b' from pyramid.view import view_config' | |||||
28 | from pyramid.response import Response |
|
28 | from pyramid.response import Response | |
29 | from pyramid.renderers import render |
|
29 | from pyramid.renderers import render | |
30 |
|
30 | |||
|
31 | from rhodecode import events | |||
31 | from rhodecode.apps._base import BaseAppView, DataGridAppView |
|
32 | from rhodecode.apps._base import BaseAppView, DataGridAppView | |
32 | from rhodecode.lib.auth import ( |
|
33 | from rhodecode.lib.auth import ( | |
33 | LoginRequired, NotAnonymous, CSRFRequired, HasPermissionAnyDecorator) |
|
34 | LoginRequired, NotAnonymous, CSRFRequired, HasPermissionAnyDecorator) | |
@@ -253,5 +254,6 b' class AdminUserGroupsView(BaseAppView, D' | |||||
253 | % user_group_name, category='error') |
|
254 | % user_group_name, category='error') | |
254 | raise HTTPFound(h.route_path('user_groups_new')) |
|
255 | raise HTTPFound(h.route_path('user_groups_new')) | |
255 |
|
256 | |||
|
257 | events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id])) | |||
256 | raise HTTPFound( |
|
258 | raise HTTPFound( | |
257 | h.route_path('edit_user_group', user_group_id=user_group_id)) |
|
259 | h.route_path('edit_user_group', user_group_id=user_group_id)) |
General Comments 0
You need to be logged in to leave comments.
Login now