method isAuthorizedRoute documentation in bbn\User\Permissions
function($url)
{
if (in_array($url, $this->allowedRoutes, true)) {
return true;
}
foreach ($this->allowedRoutes as $ar) {
if (substr($ar, -1) === '*') {
if ((strlen($ar) === 1) || (strpos($url, substr($ar, 0, -1)) === 0)) {
if (in_array($url, $this->forbiddenRoutes, true)) {
return false;
}
foreach ($this->forbiddenRoutes as $ar2) {
if (substr($ar2, -1) === '*') {
if (strpos($url, substr($ar2, 0, -1)) === 0) {
return false;
}
}
}
return true;
}
}
}
return false;
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions