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 ab0e96df9506fb6f1783e0ee79b63934dabe0cbe)
Reviewed: https:/ /review. opendev. org/681868 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=81740d310f7 078a10435ecbeb3 e7a31bc62c7497
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 81740d310f7078a 10435ecbeb3e7a3 1bc62c7497
Author: Gloria Gu <email address hidden>
Date: Tue Aug 20 15:45:22 2019 -0700
Avoid forced logout when 403 error encountered
Before this change when a 403 error was encountered, such as failure to >compute- >images, the 403 will forcibly log out
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-
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: I10a6eeb96dd141 8449e1d15b1a386 9cd4de9cafa f1783e0ee79b639 34dabe0cbe)
Closes-bug: #1840844
(cherry picked from commit ab0e96df9506fb6