Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
00cbcc60aa | |||
2942a7a6fe |
@ -1,3 +1,9 @@
|
|||||||
|
dcAdvancedCleaner 1.6.1 - 2023.11.04
|
||||||
|
===========================================================
|
||||||
|
* Require Dotclear 2.28
|
||||||
|
* Require PHP 8.1
|
||||||
|
* Cosmetic fix
|
||||||
|
|
||||||
dcAdvancedCleaner 1.6 - 2023.10.18
|
dcAdvancedCleaner 1.6 - 2023.10.18
|
||||||
===========================================================
|
===========================================================
|
||||||
* Require Dotclear 2.28
|
* Require Dotclear 2.28
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# README
|
# README
|
||||||
|
|
||||||
[![Release](https://img.shields.io/badge/release-1.6-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases)
|
[![Release](https://img.shields.io/badge/release-1.6.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases)
|
||||||
![Date](https://img.shields.io/badge/date-2023.10.18-c44d58.svg)
|
![Date](https://img.shields.io/badge/date-2023.11.04-c44d58.svg)
|
||||||
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
|
[![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download)
|
||||||
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/dcAdvancedCleaner)
|
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/dcAdvancedCleaner)
|
||||||
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/LICENSE)
|
[![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/LICENSE)
|
||||||
@ -16,8 +16,8 @@ _dcAdvancedCleaner_ is a plugin for the open-source web publishing software call
|
|||||||
|
|
||||||
* Dotclear 2.28
|
* Dotclear 2.28
|
||||||
* PHP 8.1+
|
* PHP 8.1+
|
||||||
* Plugin Uninstaller
|
* Plugin Uninstaller (from distribution)
|
||||||
* Permissions superadmin
|
* Dotclaer superadmin permission
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ $this->registerModule(
|
|||||||
'Advanced cleaner',
|
'Advanced cleaner',
|
||||||
'Make a huge cleaning of dotclear',
|
'Make a huge cleaning of dotclear',
|
||||||
'Jean-Christian Denis and Contributors',
|
'Jean-Christian Denis and Contributors',
|
||||||
'1.6',
|
'1.6.1',
|
||||||
[
|
[
|
||||||
'requires' => [
|
'requires' => [
|
||||||
['core', '2.28'],
|
['core', '2.28'],
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="dcAdvancedCleaner">
|
<module id="dcAdvancedCleaner">
|
||||||
<name>Advanced cleaner</name>
|
<name>Advanced cleaner</name>
|
||||||
<version>1.5</version>
|
<version>1.6.1</version>
|
||||||
<author>Jean-Christian Denis and Contributors</author>
|
<author>Jean-Christian Denis and Contributors</author>
|
||||||
<desc>Make a huge cleaning of dotclear</desc>
|
<desc>Make a huge cleaning of dotclear</desc>
|
||||||
<file>https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases/download/v1.5/plugin-dcAdvancedCleaner.zip</file>
|
<file>https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/releases/download/v1.6.1/plugin-dcAdvancedCleaner.zip</file>
|
||||||
<da:dcmin>2.28</da:dcmin>
|
<da:dcmin>2.28</da:dcmin>
|
||||||
<da:details>https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/README.md</da:details>
|
<da:details>https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/src/branch/master/README.md</da:details>
|
||||||
<da:support>https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/issues</da:support>
|
<da:support>https://git.dotclear.watch/JcDenis/dcAdvancedCleaner/issues</da:support>
|
||||||
|
@ -18,7 +18,10 @@ class My extends MyPlugin
|
|||||||
{
|
{
|
||||||
public static function checkCustomContext(int $context): ?bool
|
public static function checkCustomContext(int $context): ?bool
|
||||||
{
|
{
|
||||||
// Limit to backend and super admin
|
return match ($context) {
|
||||||
return App::task()->checkContext('BACKEND') && App::auth()->isSuperAdmin();
|
// Limit to super admin
|
||||||
|
self::MODULE => App::auth()->isSuperAdmin(),
|
||||||
|
default => null,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user