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.
Reviewed: https:/ /review. opendev. org/677580 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=ab0e96df950 6fb6f1783e0ee79 b63934dabe0cbe
Committed: https:/
Submitter: Zuul
Branch: master
commit ab0e96df9506fb6 f1783e0ee79b639 34dabe0cbe
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
Closes-bug: #1840844