protected function userHasAllPermissions(array $permissions)
    {
        if ( ! count($permissions)) {
            return true;
        }

        return ! count(
            array_filter($permissions, function ($permission) {
                return ! array_get($this->userPermissions, $permission);
            })
        );
    }