auth)) { return null; } $this->registerModule( 'Whitelist comments', 'Whitelists for comments moderation', 'Jean-Christian Denis and Contributors', '1.2', [ 'requires' => [ ['core', '2.26'], ['antispam', '2.0'], ], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_USAGE, dcCore::app()->auth::PERMISSION_CONTENT_ADMIN, ]), 'priority' => 200, 'type' => 'plugin', 'support' => 'https://github.com/JcDenis/' . basename(__DIR__), 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', ] );