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:
denise 2013-02-06 14:32:13 -05:00
parent 634a6991ce
commit 55970a4b20
1 changed files with 4 additions and 1 deletions

View File

@ -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";
}