summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-10-16 17:16:37 +0000
committerGerrit Code Review <review@openstack.org>2017-10-16 17:16:37 +0000
commit5f21bd56afa10b5af471604066b43beaf8806f19 (patch)
tree17a23e78bed0e760b684d605ecd2279150c7eceb
parent1437fa6533785929771676bc7f794c907fab5175 (diff)
parent4d32b1fbe9107c1474944794fe3e1876ad21dc1d (diff)
Merge "Add permissions explanation to quickstart doc"
-rw-r--r--doc/source/contributor/quickstart.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/source/contributor/quickstart.rst b/doc/source/contributor/quickstart.rst
index de8856d..b464a9e 100644
--- a/doc/source/contributor/quickstart.rst
+++ b/doc/source/contributor/quickstart.rst
@@ -308,7 +308,7 @@ you register it in a ``panel.py`` file
308 class Images(horizon.Panel): 308 class Images(horizon.Panel):
309 name = "Images" 309 name = "Images"
310 slug = 'images' 310 slug = 'images'
311 permissions = ('openstack.roles.admin', 'my.openstack.permission',) 311 permissions = ('openstack.roles.admin', 'openstack.service.image')
312 policy_rules = (('endpoint', 'endpoint:rule'),) 312 policy_rules = (('endpoint', 'endpoint:rule'),)
313 313
314 # You could also register your panel with another application's dashboard 314 # You could also register your panel with another application's dashboard
@@ -318,3 +318,8 @@ By default a :class:`~horizon.Panel` class looks for a ``urls.py`` file in the
318same directory as ``panel.py`` to include in the rollup of url patterns from 318same directory as ``panel.py`` to include in the rollup of url patterns from
319panels to dashboards to Horizon, resulting in a wholly extensible, configurable 319panels to dashboards to Horizon, resulting in a wholly extensible, configurable
320URL structure. 320URL structure.
321
322Policy rules are defined in ``horizon/openstack_dashboard/conf/``. Permissions
323are inherited from Keystone and take either the form
324'openstack.roles.role_name' or 'openstack.services.service_name' for the user's
325roles in keystone and the services in their service catalog.