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

On the view request screen, when a user can make a decision, show the role(s)...

On the view request screen, when a user can make a decision, show the role(s) that is making the decision.
parent ed81b1ca
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ class Courses_ViewController extends App_Controller_Action
$userRoles = Requests_ApprovalRoleModel::findByUser($user);
$allowedRoles = array_intersect(array(1) + $possibleAction->getParticipatingRoleIds(), $userRoles->getId());
$allowedRoles = array_intersect(array_merge(array(1), $possibleAction->getParticipatingRoleIds()), $userRoles->getId());
if (count($allowedRoles) > 0) {
$action = $possibleAction;
foreach ($allowedRoles as $allowedRole) {
......
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