Airship\Engine\Bolt\Security::isSuperUser PHP Method

isSuperUser() public method

Are we currently logged in as an admin?
public isSuperUser ( integer $userId ) : boolean
$userId integer (defaults to current user)
return boolean
    public function isSuperUser(int $userId = 0) : bool
    {
        if (!$this->airship_perms instanceof Permissions) {
            $this->tightenSecurityBolt();
        }
        if (empty($userId)) {
            try {
                $userId = $this->getActiveUserId();
            } catch (SecurityAlert $e) {
                return false;
            }
        }
        return $this->airship_perms->isSuperUser($userId);
    }