Browse Source

Merge "Add permissions explanation to quickstart doc"

Zuul 1 year ago
parent
commit
5f21bd56af
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      doc/source/contributor/quickstart.rst

+ 6
- 1
doc/source/contributor/quickstart.rst View File

@@ -308,7 +308,7 @@ you register it in a ``panel.py`` file
308 308
     class Images(horizon.Panel):
309 309
         name = "Images"
310 310
         slug = 'images'
311
-        permissions = ('openstack.roles.admin', 'my.openstack.permission',)
311
+        permissions = ('openstack.roles.admin', 'openstack.service.image')
312 312
         policy_rules = (('endpoint', 'endpoint:rule'),)
313 313
 
314 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
318 318
 same directory as ``panel.py`` to include in the rollup of url patterns from
319 319
 panels to dashboards to Horizon, resulting in a wholly extensible, configurable
320 320
 URL structure.
321
+
322
+Policy rules are defined in ``horizon/openstack_dashboard/conf/``. Permissions
323
+are inherited from Keystone and take either the form
324
+'openstack.roles.role_name' or 'openstack.services.service_name' for the user's
325
+roles in keystone and the services in their service catalog.

Loading…
Cancel
Save