Mercurial > kallithea
comparison rhodecode/controllers/admin/users.py @ 1818:cf51bbfb120e beta
auto white-space removal
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 29 Dec 2011 07:35:51 +0200 |
parents | a87aa385f21c |
children | 89efedac4e6c |
comparison
equal
deleted
inserted
replaced
1817:523b1011a625 | 1818:cf51bbfb120e |
---|---|
186 """PUT /users_perm/id: Update an existing item""" | 186 """PUT /users_perm/id: Update an existing item""" |
187 # url('user_perm', id=ID, method='put') | 187 # url('user_perm', id=ID, method='put') |
188 | 188 |
189 grant_perm = request.POST.get('create_repo_perm', False) | 189 grant_perm = request.POST.get('create_repo_perm', False) |
190 user_model = UserModel() | 190 user_model = UserModel() |
191 | 191 |
192 if grant_perm: | 192 if grant_perm: |
193 perm = Permission.get_by_key('hg.create.none') | 193 perm = Permission.get_by_key('hg.create.none') |
194 user_model.revoke_perm(id, perm) | 194 user_model.revoke_perm(id, perm) |
195 | 195 |
196 perm = Permission.get_by_key('hg.create.repository') | 196 perm = Permission.get_by_key('hg.create.repository') |