method has documentation in bbn\User\Permissions
Checks if a user and/or a group has a permission.
function(string $id_option = NULL, string $type = 'access', bool $force = false)
{
if (!$force && $this->user && $this->user->isDev()) {
return true;
}
if ($id_option = $this->_get_id_option($id_option, $type)) {
$option = $this->opt->option($id_option);
if (!empty($option['public'])) {
return true;
}
return $this->pref->has($id_option, $force);
}
return false;
}
Checks if a user and/or a group has a permission. 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