method hasDeep documentation in bbn\User\Permissions

Checks if a user and/or a group has a permission for the given option or for its childern.

function(string $id_option = NULL, string $type = 'access', bool $force = false) { if (!$force && $this->user && $this->user->isDev()) { return true; } if ($this->has($id_option, $type, $force)) { return true; } if (($id_option = $this->_get_id_option($id_option, $type)) && ($options = $this->opt->fullOptions($id_option)) ) { foreach ($options as $option){ if ($this->hasDeep($option['id'], $type, $force)) { return true; } } } return false; }

Checks if a user and/or a group has a permission for the given option or for its childern. 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.