##// END OF EJS Templates
repo-permission: properly flush caches on set private mode.
dan -
r4188:11fc38a7 stable
parent child Browse files
Show More
@@ -122,6 +122,10 b' class RepoSettingsPermissionsView(RepoAp'
122 h.flash(_('Error occurred during update of repository {}').format(
122 h.flash(_('Error occurred during update of repository {}').format(
123 self.db_repo_name), category='error')
123 self.db_repo_name), category='error')
124
124
125 # NOTE(dan): we change repo private mode we need to notify all USERS
126 affected_user_ids = [x.user_id for x in User.get_all()]
127 PermissionModel().trigger_permission_flush(affected_user_ids)
128
125 return {
129 return {
126 'redirect_url': h.route_path('edit_repo_perms', repo_name=self.db_repo_name),
130 'redirect_url': h.route_path('edit_repo_perms', repo_name=self.db_repo_name),
127 'private': True
131 'private': True
General Comments 0
You need to be logged in to leave comments. Login now