# fluentform/6.2.8/app/Http/Policies/GlobalIntegrationPolicy.php

Fluent Forms – Customizable Contact Forms, Survey, Quiz, &amp; Conversational Form Builder, version 6.2.8. 48 lines.

- Page: https://pluginprobe.com/plugins/fluentform/6.2.8/code/app/Http/Policies/GlobalIntegrationPolicy.php
- Raw: https://pluginprobe.com/plugins/fluentform/6.2.8/raw/app/Http/Policies/GlobalIntegrationPolicy.php
- Modified: 2026-04-23T12:58:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluentform/6.2.8/code/app/Http/Policies/GlobalIntegrationPolicy.php#L10-L20`.

```php
<?php

namespace FluentForm\App\Http\Policies;

use FluentForm\App\Modules\Acl\Acl;
use FluentForm\Framework\Foundation\Policy;
use FluentForm\Framework\Http\Request\Request;

class GlobalIntegrationPolicy extends Policy
{
    public function verifyRequest(Request $request)
    {
        return $this->canManageGlobalIntegrations();
    }

    public function index()
    {
        return $this->canManageGlobalIntegrations();
    }

    public function updateIntegration()
    {
        return $this->canManageGlobalIntegrations();
    }

    public function updateModuleStatus()
    {
        return $this->canManageGlobalIntegrations();
    }

    private function canManageGlobalIntegrations()
    {
        if (
            current_user_can('manage_options') ||
            current_user_can('fluentform_full_access') ||
            current_user_can('fluentform_settings_manager')
        ) {
            return true;
        }

        $roleCapability = Acl::getCurrentUserCapability();

        // Legacy role-level Fluent Forms access stores the WP role key here.
        // Granular Fluent Forms permissions must not imply settings access.
        return $roleCapability && !in_array($roleCapability, Acl::getPermissionSet(), true);
    }
}

```
