method readOption documentation in bbn\User\Permissions
Checks if the given option is readable by the current user.
function(string $id_option = NULL, bool $force = false)
{
if ($this->user->isAdmin()) {
return true;
}
if ($id_perm = $this->optionToPermission($id_option)) {
return $this->pref->has($id_perm, $force) ?: $this->user->isAdmin();
}
return true;
}
Checks if the given option is readable by the current user. 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