Mercurial > kallithea
comparison rhodecode/config/routing.py @ 3628:c734686b3cf2 beta
moved permission management into separate entity.
- this solves issues when whole form submision could influence permission management
particular case is that when repo group permission is revoked and user is no longer able to update repository settings
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 28 Mar 2013 02:11:26 +0100 |
parents | c177f304eb40 |
children | 802c94bdfc85 |
comparison
equal
deleted
inserted
replaced
3627:32cb8d45f330 | 3628:c734686b3cf2 |
---|---|
125 action="show", conditions=dict(method=["GET"], | 125 action="show", conditions=dict(method=["GET"], |
126 function=check_repo)) | 126 function=check_repo)) |
127 m.connect("formatted_repo", "/repos/{repo_name:.*?}.{format}", | 127 m.connect("formatted_repo", "/repos/{repo_name:.*?}.{format}", |
128 action="show", conditions=dict(method=["GET"], | 128 action="show", conditions=dict(method=["GET"], |
129 function=check_repo)) | 129 function=check_repo)) |
130 #add repo perm member | |
131 m.connect('set_repo_perm_member', "/set_repo_perm_member/{repo_name:.*?}", | |
132 action="set_repo_perm_member", | |
133 conditions=dict(method=["POST"], function=check_repo)) | |
134 | |
130 #ajax delete repo perm user | 135 #ajax delete repo perm user |
131 m.connect('delete_repo_user', "/repos_delete_user/{repo_name:.*?}", | 136 m.connect('delete_repo_user', "/repos_delete_user/{repo_name:.*?}", |
132 action="delete_perm_user", | 137 action="delete_perm_user", |
133 conditions=dict(method=["DELETE"], function=check_repo)) | 138 conditions=dict(method=["DELETE"], function=check_repo)) |
134 | 139 |