# HG changeset patch # User Marcin Kuzminski # Date 2019-01-28 18:58:56 # Node ID abae8687bc9a25214de9e8fa1700d8e168fff622 # Parent 206694bc6e87fccaabf2d8a898cfaf50b81fbb42 branch-permissions: add flash info when redirected from branch permissions page to indicate required action diff --git a/rhodecode/apps/repository/views/repo_permissions.py b/rhodecode/apps/repository/views/repo_permissions.py --- a/rhodecode/apps/repository/views/repo_permissions.py +++ b/rhodecode/apps/repository/views/repo_permissions.py @@ -50,8 +50,13 @@ class RepoSettingsPermissionsView(RepoAp route_name='edit_repo_perms', request_method='GET', renderer='rhodecode:templates/admin/repos/repo_edit.mako') def edit_permissions(self): + _ = self.request.translate c = self.load_default_context() c.active = 'permissions' + if self.request.GET.get('branch_permissions'): + h.flash(_('Explicitly add user or user group with write+ ' + 'permission to modify their branch permissions.'), + category='notice') return self._get_template_context(c) @LoginRequired()