CC-4925: Changing User permissions to a higher level ends up with show editing problems
- added check to ensure user is not an admin before assigning the 'dj-edit-show' action
This commit is contained in:
parent
634a6991ce
commit
55970a4b20
|
@ -573,7 +573,10 @@ class ScheduleController extends Zend_Controller_Action
|
|||
return;
|
||||
}
|
||||
|
||||
if ($isDJ) {
|
||||
// in case a user was once a dj and had been assigned to a show
|
||||
// but was then changed to an admin user we need to allow
|
||||
// the user to edit the show as an admin (CC-4925)
|
||||
if ($isDJ && !$idAdminOrPM) {
|
||||
$this->view->action = "dj-edit-show";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue