Show More
@@ -35,7 +35,7 from pylons.i18n.translation import _ | |||||
35 |
|
35 | |||
36 | from rhodecode.lib import helpers as h |
|
36 | from rhodecode.lib import helpers as h | |
37 | from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator, \ |
|
37 | from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator, \ | |
38 | HasPermissionAnyDecorator |
|
38 | HasPermissionAnyDecorator, HasRepoPermissionAllDecorator | |
39 | from rhodecode.lib.base import BaseController, render |
|
39 | from rhodecode.lib.base import BaseController, render | |
40 | from rhodecode.lib.utils import invalidate_cache, action_logger, repo_name_slug |
|
40 | from rhodecode.lib.utils import invalidate_cache, action_logger, repo_name_slug | |
41 | from rhodecode.lib.helpers import get_token |
|
41 | from rhodecode.lib.helpers import get_token | |
@@ -271,7 +271,8 class ReposController(BaseController): | |||||
271 |
|
271 | |||
272 | return redirect(url('repos')) |
|
272 | return redirect(url('repos')) | |
273 |
|
273 | |||
274 | @HasPermissionAllDecorator('hg.admin') |
|
274 | ||
|
275 | @HasRepoPermissionAllDecorator('repository.admin') | |||
275 | def delete_perm_user(self, repo_name): |
|
276 | def delete_perm_user(self, repo_name): | |
276 | """ |
|
277 | """ | |
277 | DELETE an existing repository permission user |
|
278 | DELETE an existing repository permission user | |
@@ -287,7 +288,7 class ReposController(BaseController): | |||||
287 | category='error') |
|
288 | category='error') | |
288 | raise HTTPInternalServerError() |
|
289 | raise HTTPInternalServerError() | |
289 |
|
290 | |||
290 |
@HasPermissionAllDecorator(' |
|
291 | @HasRepoPermissionAllDecorator('repository.admin') | |
291 | def delete_perm_users_group(self, repo_name): |
|
292 | def delete_perm_users_group(self, repo_name): | |
292 | """ |
|
293 | """ | |
293 | DELETE an existing repository permission users group |
|
294 | DELETE an existing repository permission users group |
General Comments 0
You need to be logged in to leave comments.
Login now