horizon/openstack_dashboard
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
..
api Add Volume backups support for admin panel 2021-03-05 00:15:08 +00:00
conf Support policy-in-code and deprecated policy 2021-01-27 14:02:27 +00:00
contrib Use python3-style super() 2020-10-15 14:37:20 +09:00
dashboards Don't load user role assignment or groups tabs for non-admins 2021-03-19 15:14:04 +00:00
django_pyscss_fix Handle log message interpolation by the logger 2017-03-31 20:59:16 +09:00
enabled Add Volume backups support for admin panel 2021-03-05 00:15:08 +00:00
local Changed default identity url to horizon 2019-12-06 18:41:38 +08:00
locale Imported Translations from Zanata 2021-03-16 06:50:58 +00:00
management Deprecate Django launch instance form 2021-03-09 15:55:35 +09:00
static Allow themes to override bg color of even lines of horizon tables 2021-02-28 13:19:47 +09:00
templates Use "load static" instead of "load staticfiles" 2021-01-13 21:31:36 +09:00
templatetags Stop to use the __future__ module. 2020-06-03 10:45:18 +02:00
test Update cirros image to cirros-0.5.2-x86_64 2021-03-16 17:11:06 +05:30
themes Fix Material theme to work with any combination of pyScss and MDI icons 2021-02-18 15:14:55 +09:00
usage Add try/except block for some nova and neutron api calls 2020-12-02 14:12:02 +00:00
utils Use python3-style super() 2020-10-15 14:37:20 +09:00
.eslintrc Add selective ESLint rule activation for Horizon Legacy JS 2015-07-08 17:06:15 -07:00
__init__.py
context_processors.py Forwards LOGOUT_URL to templates. 2019-09-20 11:51:48 +02:00
defaults.py Add default_availability_zone for VM creation 2021-03-13 19:28:16 +00:00
exceptions.py Drop Heat related code from horizon 2017-12-05 07:38:55 +00:00
hooks.py pylint: fix import-error 2019-01-16 00:00:58 +09:00
karma.conf.js Add expectations to identity specs 2020-12-18 10:22:57 -06:00
policy.py Specify POLICY_CHECK_FUNCTION as a string 2016-11-25 13:06:14 +01:00
settings.py Rename zh-cn and zh-tw translations to zh-hans and zh-hant 2021-02-18 09:57:27 +09:00
theme_settings.py pylint: fix several warnings 2019-01-15 00:22:27 +09:00
urls.py Define default settings explicitly (openstack_dashboard 5/5) 2019-07-08 18:20:32 +09:00
views.py Merge "Use python3-style super()" 2020-10-27 04:42:53 +00:00
wsgi.py Fixed path after moving wsgi/django.wsgi to wsgi.py 2018-09-06 12:05:37 +02:00