Show More
@@ -512,7 +512,7 b' class ApiController(JSONRPCController):' | |||||
512 | raise JSONRPCError('failed to delete repository %s' % repo_name) |
|
512 | raise JSONRPCError('failed to delete repository %s' % repo_name) | |
513 |
|
513 | |||
514 | @HasPermissionAnyDecorator('hg.admin') |
|
514 | @HasPermissionAnyDecorator('hg.admin') | |
515 | def grant_user_permission(self, repo_name, username, perm): |
|
515 | def grant_user_permission(self, apiuser, repo_name, username, perm): | |
516 | """ |
|
516 | """ | |
517 | Grant permission for user on given repository, or update existing one |
|
517 | Grant permission for user on given repository, or update existing one | |
518 | if found |
|
518 | if found | |
@@ -548,7 +548,7 b' class ApiController(JSONRPCController):' | |||||
548 | ) |
|
548 | ) | |
549 |
|
549 | |||
550 | @HasPermissionAnyDecorator('hg.admin') |
|
550 | @HasPermissionAnyDecorator('hg.admin') | |
551 | def revoke_user_permission(self, repo_name, username): |
|
551 | def revoke_user_permission(self, apiuser, repo_name, username): | |
552 | """ |
|
552 | """ | |
553 | Revoke permission for user on given repository |
|
553 | Revoke permission for user on given repository | |
554 |
|
554 | |||
@@ -582,7 +582,7 b' class ApiController(JSONRPCController):' | |||||
582 | ) |
|
582 | ) | |
583 |
|
583 | |||
584 | @HasPermissionAnyDecorator('hg.admin') |
|
584 | @HasPermissionAnyDecorator('hg.admin') | |
585 | def grant_users_group_permission(self, repo_name, group_name, perm): |
|
585 | def grant_users_group_permission(self, apiuser, repo_name, group_name, perm): | |
586 | """ |
|
586 | """ | |
587 | Grant permission for users group on given repository, or update |
|
587 | Grant permission for users group on given repository, or update | |
588 | existing one if found |
|
588 | existing one if found | |
@@ -620,7 +620,7 b' class ApiController(JSONRPCController):' | |||||
620 | ) |
|
620 | ) | |
621 |
|
621 | |||
622 | @HasPermissionAnyDecorator('hg.admin') |
|
622 | @HasPermissionAnyDecorator('hg.admin') | |
623 | def revoke_users_group_permission(self, repo_name, group_name): |
|
623 | def revoke_users_group_permission(self, apiuser, repo_name, group_name): | |
624 | """ |
|
624 | """ | |
625 | Revoke permission for users group on given repository |
|
625 | Revoke permission for users group on given repository | |
626 |
|
626 |
General Comments 0
You need to be logged in to leave comments.
Login now