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
Branches develop
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ class Courses_ViewController extends App_Controller_Action ...@@ -61,7 +61,7 @@ class Courses_ViewController extends App_Controller_Action
$userRoles = Requests_ApprovalRoleModel::findByUser($user); $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) { if (count($allowedRoles) > 0) {
$action = $possibleAction; $action = $possibleAction;
foreach ($allowedRoles as $allowedRole) { foreach ($allowedRoles as $allowedRole) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment