Added method getOE_isEntitledFor()

The method checks permission of the logged in user and retrieves all
organisational units this user is entitled for.
This commit is contained in:
Cris
2019-09-19 13:28:15 +02:00
committed by hainberg
parent 8566039cc4
commit 615ed03fbe
+19
View File
@@ -274,6 +274,25 @@ class PermissionLib
}
}
/**
* Returns the organisational units the person is entitled for.
* @param null $berechtigung_kurzbz
* @return array|bool array of oe_kurzbz the person is entitled for. False on error.
*/
public function getOE_isEntitledFor($berechtigung_kurzbz = null)
{
$oe_kurzbz_arr = array();
if (self::$bb->getOEkurzbz($berechtigung_kurzbz))
{
return $oe_kurzbz_arr = self::$bb->getOEkurzbz($berechtigung_kurzbz);
}
else
{
return false;
}
}
//------------------------------------------------------------------------------------------------------------------
// Private methods