method isAuthorized documentation in bbn\User\Preferences

Checks if the given user or the current user is authorized to access a user_option.

Example

$pref->isAuthorized("930ac00324ef11eca47652540000cfbe"); // (bool) = false; $pref->isAuthorized("eac3729c2b6c11eca47652540000cfbe"); // (bool) = true; ` function(string $id_user_option) { return (bool)$this->get($id_user_option, false); }

Checks if the given user or the current user is authorized to access a user_option. 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.