Skip to content
Snippets Groups Projects
Commit 0a27395b authored by Tim Steiner's avatar Tim Steiner
Browse files

Bug fixed where a user couldn't edit requests they should be able to.

parent 89243917
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class Courses_ViewController extends App_Controller_Action ...@@ -68,7 +68,7 @@ class Courses_ViewController extends App_Controller_Action
$actionRoleNames[] = $userRoles[$allowedRole]->getName(); $actionRoleNames[] = $userRoles[$allowedRole]->getName();
} }
} }
$editAllowedRoles = array_intersect(array(1) + $possibleAction->getEditingRoleIds(), $userRoles->getId()); $editAllowedRoles = array_intersect(array_merge(array(1), $possibleAction->getEditingRoleIds()), $userRoles->getId());
if (count($editAllowedRoles) > 0) { if (count($editAllowedRoles) > 0) {
$canEdit = true; $canEdit = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment