Added monasca-ui permissions policy

Change-Id: I160447204b1e8a5ddaf201fe5c5df8b2a51588b8
This commit is contained in:
Ryan Bak 2014-10-31 12:02:15 -06:00
parent 1f84073166
commit 9173eff2ee
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
{
"context_is_admin": "role:admin",
"admin_or_owner": "is_admin:True or project_id:%(project_id)s",
"default": "rule:admin_required",
"monitoring:monitoring": "rule:admin_required",
}

View File

@ -24,6 +24,6 @@ class Monitoring(horizon.Dashboard):
slug = "monitoring"
panels = ('overview', 'alarmdefs', 'alarms', 'notifications',)
default_panel = 'overview'
policy_rules = (("monitoring", "monitoring:monitoring"),)
horizon.register(Monitoring)