horizon/horizon
Gloria Gu a2acb3e5c1 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)
(cherry picked from commit 81740d310f)
2020-01-17 13:52:26 +00:00
..
browsers Enable to refresh ngdetails view 2018-02-01 20:30:03 +09:00
conf hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
contrib Fix H405 (multi line docstring) warnings (horizon) 2017-06-09 16:04:57 +00:00
forms comment was wrongly declared 2018-01-25 09:42:55 +08:00
hacking Eliminate mutable default arguments 2015-12-17 09:58:46 +00:00
locale Imported Translations from Zanata 2019-03-29 08:00:38 +00:00
management pull_catalog: avoid internet access during module loading 2017-11-21 11:57:43 +00:00
middleware operation_log: Mask more password fields by default 2018-01-31 22:39:22 +09:00
static Avoid forced logout when 403 error encountered 2020-01-17 13:52:26 +00:00
tables Avoid duplicated message in Batch/DeleteAction 2018-01-23 22:46:25 +09:00
tabs Fix H405 (multi line docstring) warnings (horizon) 2017-06-09 16:04:57 +00:00
templates Horizon UI message when browser cookies disabled 2018-01-29 07:58:41 +00:00
templatetags Use flake8-import-order plugin 2017-07-03 08:02:23 +00:00
test Complete angular translation extract pattern 2019-05-12 09:08:12 +00:00
utils Complete angular translation extract pattern 2019-05-12 09:08:12 +00:00
workflows Switch render() arguments to the new way 2017-06-21 19:32:03 +00: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:40:50 +09:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py Views accessible via url even if user doesn't match policy rules 2018-02-02 21:24:33 +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 hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
messages.py hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
notifications.py Ensure log messages are not translated 2017-04-11 10:24:01 +00:00
site_urls.py hacking: noqa cleanup in horizon 2017-03-17 19:38:47 +00:00
themes.py Added SELECTABLE_THEMES setting 2017-07-26 11:52:35 +01: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