caches: flush cache when adding new objects so we can access them right away.
This commit is contained in:
parent
a53b88ea40
commit
8a32949457
3 changed files with 7 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ from pyramid.view import view_config
|
|||
from pyramid.renderers import render
|
||||
from pyramid.response import Response
|
||||
|
||||
from rhodecode import events
|
||||
from rhodecode.apps._base import BaseAppView, DataGridAppView
|
||||
|
||||
from rhodecode.lib.ext_json import json
|
||||
|
|
@ -200,6 +201,7 @@ class AdminRepoGroupsView(BaseAppView, DataGridAppView):
|
|||
% repo_group_name, category='error')
|
||||
raise HTTPFound(h.route_path('home'))
|
||||
|
||||
events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id]))
|
||||
raise HTTPFound(
|
||||
h.route_path('repo_group_home',
|
||||
repo_group_name=form_result['group_name_full']))
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ from pyramid.view import view_config
|
|||
from pyramid.renderers import render
|
||||
from pyramid.response import Response
|
||||
|
||||
from rhodecode import events
|
||||
from rhodecode.apps._base import BaseAppView, DataGridAppView
|
||||
from rhodecode.lib.celerylib.utils import get_task_id
|
||||
|
||||
|
|
@ -175,6 +176,8 @@ class AdminReposView(BaseAppView, DataGridAppView):
|
|||
h.flash(msg, category='error')
|
||||
raise HTTPFound(h.route_path('home'))
|
||||
|
||||
events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id]))
|
||||
|
||||
raise HTTPFound(
|
||||
h.route_path('repo_creating',
|
||||
repo_name=form_result['repo_name_full'],
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ from pyramid.view import view_config
|
|||
from pyramid.response import Response
|
||||
from pyramid.renderers import render
|
||||
|
||||
from rhodecode import events
|
||||
from rhodecode.apps._base import BaseAppView, DataGridAppView
|
||||
from rhodecode.lib.auth import (
|
||||
LoginRequired, NotAnonymous, CSRFRequired, HasPermissionAnyDecorator)
|
||||
|
|
@ -253,5 +254,6 @@ class AdminUserGroupsView(BaseAppView, DataGridAppView):
|
|||
% user_group_name, category='error')
|
||||
raise HTTPFound(h.route_path('user_groups_new'))
|
||||
|
||||
events.trigger(events.UserPermissionsChange([self._rhodecode_user.user_id]))
|
||||
raise HTTPFound(
|
||||
h.route_path('edit_user_group', user_group_id=user_group_id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue