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
1 changed files with 4 additions and 1 deletions
|
@ -573,7 +573,10 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
return;
|
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";
|
$this->view->action = "dj-edit-show";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue