public function hasAccess($permissions)
    {
        if ($this->permissions->isEmpty())
        {
            $this->mergePermissions($this->userPermissions, $this->rolePermissions);
        }

        if (func_num_args() > 1)
        {
            $permissions = func_get_args();
        }

        foreach ((array) $permissions as $permissionName)
        {
            if (! $this->allows($permissionName))
            {
                return false;
            }
        }

        return true;
    }