Merge "Add policies for API access control to watcher project."

This commit is contained in:
Jenkins
2016-07-06 16:17:43 +00:00
committed by Gerrit Code Review
22 changed files with 693 additions and 104 deletions

View File

@@ -123,6 +123,10 @@ class NotAuthorized(WatcherException):
code = 403
class PolicyNotAuthorized(NotAuthorized):
msg_fmt = _("Policy doesn't allow %(action)s to be performed.")
class OperationNotPermitted(NotAuthorized):
msg_fmt = _("Operation not permitted")