horizon/openstack_dashboard/dashboards
Mark Goddard 60cf320315 Don't load user role assignment or groups tabs for non-admins
As a non admin user, navigate to Identity -> Users. Then click on the
username of your user to go to the detail page.

Only the allowed Overview tab is visible.

The view shows three tabs: Overview, Role assignments, Groups. Click on
either Role assignments or Groups. An error will appear, showing that
the API call is unauthorised, and the table content will fail to load.

This change fixes the issue by conditionally loading the tabs based on
policy.

Closes-Bug: #1920214
Change-Id: Ic8b723e6fd423b96a4f5eff54f9392cee534ed9e
2021-03-19 15:14:04 +00:00
..
admin Replace Delete Force Volume Backup with Force Delete Volume Backup 2021-03-18 12:13:18 +00:00
identity Don't load user role assignment or groups tabs for non-admins 2021-03-19 15:14:04 +00:00
project Add default_availability_zone for VM creation 2021-03-13 19:28:16 +00:00
settings Get the timezone offset for the current day instead of January 1st. 2021-03-18 08:29:07 +09:00
__init__.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00