Added monasca-ui permissions policy
Change-Id: I160447204b1e8a5ddaf201fe5c5df8b2a51588b8
This commit is contained in:
parent
1f84073166
commit
9173eff2ee
7
monasca_policy.json.sample
Normal file
7
monasca_policy.json.sample
Normal 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",
|
||||
}
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user