Comment 16 for bug 1840844

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/queens)

Reviewed: https://review.opendev.org/703083
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a2acb3e5c178cd5b18228c42d98129d68226f61c
Submitter: Zuul
Branch: stable/queens

commit a2acb3e5c178cd5b18228c42d98129d68226f61c
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
    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)
    (cherry picked from commit 81740d310f7078a10435ecbeb3e7a31bc62c7497)