Skip to content

Commit

Permalink
fix configuration of entitlement server variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuck committed Jun 15, 2017
1 parent 4ef5ee1 commit df27504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/StudentAffairsUwm/Shibboleth/Entitlement.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static function findInString($entitlements)
*/
public static function has($entitlement)
{
return strpos(Request::server('entitlement'), $entitlement) !== false;
$variable = config('shibboleth.idp_login_entitlement');
return strpos(Request::server($variable), $entitlement) !== false;
}
}
2 changes: 2 additions & 0 deletions tests/setup/Stubs/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public function setUp()

parent::setUp();

config(['shibboleth.idp_login_entitlement' => 'entitlement']);

$this->artisan('migrate:refresh', ['--database' => 'testing']);
}

Expand Down

0 comments on commit df27504

Please sign in to comment.