dcAdvancedCleaner/src/My.php

27 lines
579 B
PHP
Raw Normal View History

2023-04-16 00:48:32 +00:00
<?php
/**
* @brief dcAdvancedCleaner, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
declare(strict_types=1);
namespace Dotclear\Plugin\dcAdvancedCleaner;
use dcCore;
2023-07-28 21:14:07 +00:00
use Dotclear\Module\MyPlugin;
2023-04-16 00:48:32 +00:00
2023-07-28 21:14:07 +00:00
class My extends MyPlugin
2023-04-16 00:48:32 +00:00
{
2023-07-28 21:14:07 +00:00
public static function checkCustomContext(int $context): ?bool
2023-04-16 00:48:32 +00:00
{
2023-07-28 21:14:07 +00:00
return $context === self::PREPEND ? dcCore::app()->auth->isSuperAdmin() : null;
2023-04-16 00:48:32 +00:00
}
}