##// END OF EJS Templates
fixes issue when owner of a repo couldn't revoke permissions for users and groups
marcink -
r1829:6f8f1ab2 default
parent child Browse files
Show More
@@ -35,7 +35,7 from pylons.i18n.translation import _
35 35
36 36 from rhodecode.lib import helpers as h
37 37 from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator, \
38 HasPermissionAnyDecorator
38 HasPermissionAnyDecorator, HasRepoPermissionAllDecorator
39 39 from rhodecode.lib.base import BaseController, render
40 40 from rhodecode.lib.utils import invalidate_cache, action_logger, repo_name_slug
41 41 from rhodecode.lib.helpers import get_token
@@ -271,7 +271,8 class ReposController(BaseController):
271 271
272 272 return redirect(url('repos'))
273 273
274 @HasPermissionAllDecorator('hg.admin')
274
275 @HasRepoPermissionAllDecorator('repository.admin')
275 276 def delete_perm_user(self, repo_name):
276 277 """
277 278 DELETE an existing repository permission user
@@ -287,7 +288,7 class ReposController(BaseController):
287 288 category='error')
288 289 raise HTTPInternalServerError()
289 290
290 @HasPermissionAllDecorator('hg.admin')
291 @HasRepoPermissionAllDecorator('repository.admin')
291 292 def delete_perm_users_group(self, repo_name):
292 293 """
293 294 DELETE an existing repository permission users group
General Comments 0
You need to be logged in to leave comments. Login now