Devise\Menus\MenusRepository::checkMenuItemPermission PHP Method

checkMenuItemPermission() private method

Tells us whether or not the menu item is supposed to be shown to this user
private checkMenuItemPermission ( $permission ) : boolean
return boolean
    private function checkMenuItemPermission($permission)
    {
        $passesCondition = false;
        try {
            $passesCondition = empty($permission) || $this->UserHelper->checkConditions($permission);
        } catch (DeviseException $e) {
            // do nothing, condition was likely not found
            // this might be a place to notify the administrator
            // that we have busted permissions...
        }
        return $passesCondition;
    }