The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit ec512ca1 authored by Demian Katz's avatar Demian Katz
Browse files

Corrected false checks to null.

parent bf26ab51
No related merge requests found
......@@ -144,7 +144,7 @@ class ServerParam implements PermissionProviderInterface,
// server param values to check
$serverParamString = $this->request->getServer()->get($serverParamName);
if ($serverParamString === false) {
if ($serverParamString === null) {
// check fails if server param is missing
return false;
}
......
......@@ -74,7 +74,7 @@ class Shibboleth extends ServerParam
*/
public function getPermissions($options)
{
if ($this->request->getServer()->get('Shib-Identity-Provider') === false) {
if ($this->request->getServer()->get('Shib-Identity-Provider') === null) {
$this->logWarning('getPermissions: Shibboleth server params missing');
return [];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment