horizon/horizon
Gloria Gu 81740d310f Avoid forced logout when 403 error encountered
Before this change when a 403 error was encountered, such as failure to
have the permission to perform an operation, the user would get logged
out from UI pages written in the AngularJS framework. For example, if an
admin user lacks the get_project permission and tries to access the
images page, project->compute->images, the 403 will forcibly log out
the user.

This change keeps the user logged in when a 403 error is encountered and
displays an error message. The change only affects AngularJS pages.

Change-Id: I10a6eeb96dd1418449e1d15b1a3869cd4de9cafa
Closes-bug: #1840844
(cherry picked from commit ab0e96df95)
2019-09-25 18:55:19 +00:00
..
browsers Reproduce navigations on refreshing ngdetails view 2018-03-29 15:01:59 +09:00
conf Support simple FIP disassociation (with FIP release) 2018-04-08 07:29:54 +09:00
contrib Fix H405 (multi line docstring) warnings (horizon) 2017-06-09 16:04:57 +00:00
forms django2: Replace django.core.urlresolves with django.urls 2018-02-17 01:36:48 +09:00
hacking Eliminate mutable default arguments 2015-12-17 09:58:46 +00:00
locale Imported Translations from Zanata 2018-08-10 07:50:06 +00:00
management Rename pull_catalog args from version to branch 2018-04-05 14:54:28 +02:00
middleware Safer handling of return statement inside of OperationLogMiddleware 2018-08-15 15:29:34 +00:00
static Avoid forced logout when 403 error encountered 2019-09-25 18:55:19 +00:00
tables Remove the redundant "required=True" 2018-07-23 09:42:41 +08:00
tabs TabGroup: Make tabs pluggable via horizon plugin config 2018-03-12 21:04:22 +09:00
templates Show WEBSSO disclaimer only when it is needed 2018-06-04 15:49:54 +03:00
templatetags Drop Django <= 1.10 support 2018-03-03 07:33:23 +09:00
test Complete angular translation extract pattern 2019-05-12 09:07:48 +00:00
utils Complete angular translation extract pattern 2019-05-12 09:07:48 +00:00
workflows Change catch type for workflow unregister 2018-06-11 17:17:18 +02:00
__init__.py Revert "Enable to refresh ngdetails view" 2017-08-02 18:31:22 +00:00
base.py Fix Angular errors in openstack_auth 2018-03-17 18:36:01 +09:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py django2: is_authenticated/is_anonymous is now property only 2018-02-17 01:36:54 +09:00
exceptions.py Correct odd exception message 2018-01-30 13:11:31 +09:00
karma.conf.js Makes the xstatic files lookup dynamic in the tests 2017-07-27 10:01:33 -04:00
loaders.py Django2: Use new custom template loader interface 2018-03-03 07:22:35 +09:00
messages.py hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
notifications.py Fix W503 warnings 2018-04-11 18:13:47 +09:00
site_urls.py django2: Fix 3-tuple ImproperlyConfigured error 2018-03-03 07:20:43 +09:00
themes.py Django2: Use new custom template loader interface 2018-03-03 07:22:35 +09:00
version.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
views.py flake8-import-order: Ensure to place project imports last 2017-09-20 01:19:38 +00:00