##// END OF EJS Templates
permissions: rename repository permissions to mention those are access permissions....
marcink -
r3985:95009b08 default
parent child
Show More
@@ -56,4 +56,4 Repository Shortcuts
56 Go to the repository settings page.
56 Go to the repository settings page.
57
57
58 \--:kbd:`gO`
58 \--:kbd:`gO`
59 Go to the repository permissions settings.
59 Go to the repository access permissions settings.
@@ -62,7 +62,7 class TestRepoPermissionsView(object):
62 route_path('edit_repo_perms',
62 route_path('edit_repo_perms',
63 repo_name=repo_name), form_data).follow()
63 repo_name=repo_name), form_data).follow()
64
64
65 assert 'Repository permissions updated' in response
65 assert 'Repository access permissions updated' in response
66
66
67 # revoke given
67 # revoke given
68 form_data = permission_update_data_generator(
68 form_data = permission_update_data_generator(
@@ -74,4 +74,4 class TestRepoPermissionsView(object):
74 route_path('edit_repo_perms',
74 route_path('edit_repo_perms',
75 repo_name=repo_name), form_data).follow()
75 repo_name=repo_name), form_data).follow()
76
76
77 assert 'Repository permissions updated' in response
77 assert 'Repository access permissions updated' in response
@@ -87,7 +87,7 class RepoSettingsPermissionsView(RepoAp
87 user=self._rhodecode_user, repo=self.db_repo)
87 user=self._rhodecode_user, repo=self.db_repo)
88
88
89 Session().commit()
89 Session().commit()
90 h.flash(_('Repository permissions updated'), category='success')
90 h.flash(_('Repository access permissions updated'), category='success')
91
91
92 PermissionModel().flush_user_permission_caches(changes)
92 PermissionModel().flush_user_permission_caches(changes)
93
93
@@ -723,7 +723,7 class PermissionCalculator(object):
723
723
724 def _calculate_repository_permissions(self):
724 def _calculate_repository_permissions(self):
725 """
725 """
726 Repository permissions for the current user.
726 Repository access permissions for the current user.
727
727
728 Check if the user is part of user groups for this repository and
728 Check if the user is part of user groups for this repository and
729 fill in the permission from it. `_choose_permission` decides of which
729 fill in the permission from it. `_choose_permission` decides of which
@@ -2,7 +2,7
2
2
3 <div class="panel panel-default">
3 <div class="panel panel-default">
4 <div class="panel-heading">
4 <div class="panel-heading">
5 <h3 class="panel-title">${_('Repository Permissions')}</h3>
5 <h3 class="panel-title">${_('Repository Access Permissions')}</h3>
6 </div>
6 </div>
7 <div class="panel-body">
7 <div class="panel-body">
8 ${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), request=request)}
8 ${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), request=request)}
@@ -1040,7 +1040,7
1040 ('g F', 'Goto files page with file search activated'),
1040 ('g F', 'Goto files page with file search activated'),
1041 ('g p', 'Goto pull requests page'),
1041 ('g p', 'Goto pull requests page'),
1042 ('g o', 'Goto repository settings'),
1042 ('g o', 'Goto repository settings'),
1043 ('g O', 'Goto repository permissions settings'),
1043 ('g O', 'Goto repository access permissions settings'),
1044 ]
1044 ]
1045 %>
1045 %>
1046 %for key, desc in elems:
1046 %for key, desc in elems:
@@ -7,7 +7,7
7 <% section_to_label = {
7 <% section_to_label = {
8 'global': 'Global Permissions',
8 'global': 'Global Permissions',
9 'repository_branches': 'Repository Branch Rules',
9 'repository_branches': 'Repository Branch Rules',
10 'repositories': 'Repository Permissions',
10 'repositories': 'Repository Access Permissions',
11 'user_groups': 'User Group Permissions',
11 'user_groups': 'User Group Permissions',
12 'repositories_groups': 'Repository Group Permissions',
12 'repositories_groups': 'Repository Group Permissions',
13 } %>
13 } %>
General Comments 0
You need to be logged in to leave comments. Login now