repo-permission: properly flush caches on set private mode.
dan -
r4188:11fc38a7 stable
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -122,6 +122,10
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
Comments 0
You need to be logged in to leave comments. Login now