Comment 4 for bug 1046538

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

Reviewed: https://review.openstack.org/14286
Committed: http://github.com/openstack/horizon/commit/35a6708dccdc71d69a147daf0b0c2fde17489d4b
Submitter: Jenkins
Branch: master

commit 35a6708dccdc71d69a147daf0b0c2fde17489d4b
Author: Tihomir Trifonov <email address hidden>
Date: Wed Oct 10 17:29:20 2012 +0300

    User shouldn't remove their own roles on project

    Added a check if the user is trying to delete their
    own 'admin' role on the current project. This is added
    to prevent the users from locking their own
    access to Dashboard. Also, if the 'admin' role on the
    current project is removed, Dashboard automatically
    switches to another project for which the user has 'admin'
    role, but the previous project still is displayed as current.

    Fixes bug 1046538

    Also improved the unit test scenarios a bit.

    Change-Id: I1e60a11d628d6490ad24a8149b43ac307afb4780