@@ -124,7 +124,7 @@ <h4>Maintainers:</h4>
124
124
< td > < a href ="{{ request.route_path('admin.user.detail', user_id=role.user.id) }} "> {{ role.user.username }}</ a > </ td >
125
125
< td > {{ role.role_name }}</ td >
126
126
< td >
127
- < button type ="button " class ="btn-danger btn-sm " data-toggle ="modal " data-target ="#deleteRoleModal-{{ role.id }} " {{ "disabled" if not request.has_permission('admin ') }}>
127
+ < button type ="button " class ="btn-danger btn-sm " data-toggle ="modal " data-target ="#deleteRoleModal-{{ role.id }} " {{ "disabled" if not request.has_permission('moderator ') }}>
128
128
< i class ="fa fa-trash "> </ i >
129
129
</ button >
130
130
< div class ="modal fade " id ="deleteRoleModal-{{ role.id }} " tabindex ="-1 " role ="dialog ">
@@ -163,10 +163,10 @@ <h4 class="modal-title" id="exampleModalLabel">Remove role for {{ role.user.user
163
163
< form method ="POST " action ="{{ request.route_path('admin.project.add_role', project_name=project.name) }} ">
164
164
< input name ="csrf_token " type ="hidden " value ="{{ request.session.get_csrf_token() }} ">
165
165
< td >
166
- < input name ="username " class ="form-control " placeholder ="Username " required {{ "disabled" if not request.has_permission('admin ') }}>
166
+ < input name ="username " class ="form-control " placeholder ="Username " required {{ "disabled" if not request.has_permission('moderator ') }}>
167
167
</ td >
168
168
< td >
169
- < select class ="form-control " name ="role_name " required {{ "disabled" if not request.has_permission('admin ') }}>
169
+ < select class ="form-control " name ="role_name " required {{ "disabled" if not request.has_permission('moderator ') }}>
170
170
< option disabled selected > Select a role</ option >
171
171
{% for role_name in ['Maintainer', 'Owner'] %}
172
172
< option value ="{{ role_name }} ">
@@ -176,7 +176,7 @@ <h4 class="modal-title" id="exampleModalLabel">Remove role for {{ role.user.user
176
176
</ select >
177
177
</ td >
178
178
< td >
179
- < button type ="submit " class ="btn btn-primary btn-sm " {{ "disabled" if not request.has_permission('admin ') }}>
179
+ < button type ="submit " class ="btn btn-primary btn-sm " {{ "disabled" if not request.has_permission('moderator ') }}>
180
180
< i class ="fa fa-plus "> </ i >
181
181
</ button >
182
182
</ td >
0 commit comments