##// END OF EJS Templates
caches: flush cache when adding new objects so we can access them right away.
marcink -
r2852:3d46d13d default
parent child Browse files
Show More
@@ -27,6 +27,7 b' from pyramid.view import view_config'
27 27 from pyramid.renderers import render
28 28 from pyramid.response import Response
29 29
30 from rhodecode import events
30 31 from rhodecode.apps._base import BaseAppView, DataGridAppView
31 32
32 33 from rhodecode.lib.ext_json import json
@@ -200,6 +201,7 b' class AdminRepoGroupsView(BaseAppView, D'
200 201 % repo_group_name, category='error')
201 202 raise HTTPFound(h.route_path('home'))
202 203
204 events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id]))
203 205 raise HTTPFound(
204 206 h.route_path('repo_group_home',
205 207 repo_group_name=form_result['group_name_full']))
@@ -27,6 +27,7 b' from pyramid.view import view_config'
27 27 from pyramid.renderers import render
28 28 from pyramid.response import Response
29 29
30 from rhodecode import events
30 31 from rhodecode.apps._base import BaseAppView, DataGridAppView
31 32 from rhodecode.lib.celerylib.utils import get_task_id
32 33
@@ -175,6 +176,8 b' class AdminReposView(BaseAppView, DataGr'
175 176 h.flash(msg, category='error')
176 177 raise HTTPFound(h.route_path('home'))
177 178
179 events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id]))
180
178 181 raise HTTPFound(
179 182 h.route_path('repo_creating',
180 183 repo_name=form_result['repo_name_full'],
@@ -28,6 +28,7 b' from pyramid.view import view_config'
28 28 from pyramid.response import Response
29 29 from pyramid.renderers import render
30 30
31 from rhodecode import events
31 32 from rhodecode.apps._base import BaseAppView, DataGridAppView
32 33 from rhodecode.lib.auth import (
33 34 LoginRequired, NotAnonymous, CSRFRequired, HasPermissionAnyDecorator)
@@ -253,5 +254,6 b' class AdminUserGroupsView(BaseAppView, D'
253 254 % user_group_name, category='error')
254 255 raise HTTPFound(h.route_path('user_groups_new'))
255 256
257 events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id]))
256 258 raise HTTPFound(
257 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