Changeset - 7531c69ebdfc
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2012-01-04 03:41:50
marcin@python-works.com
fixes issue when owner of a repo couldn't revoke permissions for users and groups
1 file changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/repos.py
Show inline comments
 
@@ -36,7 +36,7 @@ from sqlalchemy.exc import IntegrityErro
 

	
 
from rhodecode.lib import helpers as h
 
from rhodecode.lib.auth import LoginRequired, HasPermissionAllDecorator, \
 
    HasPermissionAnyDecorator
 
    HasPermissionAnyDecorator, HasRepoPermissionAllDecorator
 
from rhodecode.lib.base import BaseController, render
 
from rhodecode.lib.utils import invalidate_cache, action_logger, repo_name_slug
 
from rhodecode.lib.helpers import get_token
 
@@ -277,7 +277,8 @@ class ReposController(BaseController):
 

	
 
        return redirect(url('repos'))
 

	
 
    @HasPermissionAllDecorator('hg.admin')
 

	
 
    @HasRepoPermissionAllDecorator('repository.admin')   
 
    def delete_perm_user(self, repo_name):
 
        """
 
        DELETE an existing repository permission user
 
@@ -294,7 +295,7 @@ class ReposController(BaseController):
 
                    category='error')
 
            raise HTTPInternalServerError()
 

	
 
    @HasPermissionAllDecorator('hg.admin')
 
    @HasRepoPermissionAllDecorator('repository.admin')
 
    def delete_perm_users_group(self, repo_name):
 
        """
 
        DELETE an existing repository permission users group
0 comments (0 inline, 0 general)