文件操作 - GlobalIntegrationPolicy.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/fluentform/app/Http/Policies/GlobalIntegrationPolicy.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); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件