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.
Reviewed: https:/ /review. openstack. org/14286 github. com/openstack/ horizon/ commit/ 35a6708dccdc71d 69a147daf0b0c2f de17489d4b
Committed: http://
Submitter: Jenkins
Branch: master
commit 35a6708dccdc71d 69a147daf0b0c2f de17489d4b
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: I1e60a11d628d64 90ad24a8149b43a c307afb4780