Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Jean-Christian Paul Denis | 4263865907 |
|
@ -1,3 +1,9 @@
|
||||||
|
moreCSS 2.5.2 - 2023.10.23
|
||||||
|
===========================================================
|
||||||
|
* Require Dotclear 2.28
|
||||||
|
* Require PHP 8.1
|
||||||
|
* Fix repository branch
|
||||||
|
|
||||||
moreCSS 2.5.1 - 2023.10.13
|
moreCSS 2.5.1 - 2023.10.13
|
||||||
===========================================================
|
===========================================================
|
||||||
* Require Dotclear 2.28
|
* Require Dotclear 2.28
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# README
|
# README
|
||||||
|
|
||||||
[![Release](https://img.shields.io/badge/release-2.5.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/moreCSS/releases)
|
[![Release](https://img.shields.io/badge/release-2.5.2-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/moreCSS/releases)
|
||||||
![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg)
|
![Date](https://img.shields.io/badge/date-2023.10.23-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/moreCSS)
|
[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/moreCSS)
|
||||||
[![License](https://img.shields.io/github/license/JcDenis/moreCSS)](https://git.dotclear.watch/JcDenis/moreCSS/blob/master/LICENSE)
|
[![License](https://img.shields.io/github/license/JcDenis/moreCSS)](https://git.dotclear.watch/JcDenis/moreCSS/blob/master/LICENSE)
|
||||||
|
@ -16,7 +16,7 @@ _moreCSS_ is a plugin for the open-source web publishing software called [Dotcle
|
||||||
|
|
||||||
* Dotclear 2.28
|
* Dotclear 2.28
|
||||||
* PHP 8.1+
|
* PHP 8.1+
|
||||||
* content admin permissions to manage CSS
|
* Dotclear content admin permissions to manage CSS
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ $this->registerModule(
|
||||||
'Style sheet',
|
'Style sheet',
|
||||||
'Another CSS stylesheet for the active theme',
|
'Another CSS stylesheet for the active theme',
|
||||||
'Osku and contributors',
|
'Osku and contributors',
|
||||||
'2.5.1',
|
'2.5.2',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.28']],
|
'requires' => [['core', '2.28']],
|
||||||
'permissions' => 'My',
|
'permissions' => 'My',
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="moreCSS">
|
<module id="moreCSS">
|
||||||
<name>Style sheet</name>
|
<name>Style sheet</name>
|
||||||
<version>2.5.1</version>
|
<version>2.5.2</version>
|
||||||
<author>Osku and contributors</author>
|
<author>Osku and contributors</author>
|
||||||
<desc>Another CSS stylesheet for the active theme</desc>
|
<desc>Another CSS stylesheet for the active theme</desc>
|
||||||
<file>https://git.dotclear.watch/JcDenis/moreCSS/releases/download/v2.5.1/plugin-moreCSS.zip</file>
|
<file>https://git.dotclear.watch/JcDenis/moreCSS/releases/download/v2.5.2/plugin-moreCSS.zip</file>
|
||||||
<da:dcmin>2.28</da:dcmin>
|
<da:dcmin>2.28</da:dcmin>
|
||||||
<da:details>https://git.dotclear.watch/JcDenis/moreCSS/src/branch/master/README.md</da:details>
|
<da:details>https://git.dotclear.watch/JcDenis/moreCSS/src/branch/master/README.md</da:details>
|
||||||
<da:support>https://git.dotclear.watch/JcDenis/moreCSS/issues</da:support>
|
<da:support>https://git.dotclear.watch/JcDenis/moreCSS/issues</da:support>
|
||||||
|
|
|
@ -20,9 +20,8 @@ class My extends MyPlugin
|
||||||
protected static function checkCustomContext(int $context): ?bool
|
protected static function checkCustomContext(int $context): ?bool
|
||||||
{
|
{
|
||||||
return match ($context) {
|
return match ($context) {
|
||||||
// Allow BACKEND and MANAGE and MENU to also content admin
|
// Add content admin perm to backend
|
||||||
self::MANAGE, self::MENU => App::task()->checkContext('BACKEND')
|
self::MANAGE, self::MENU => App::task()->checkContext('BACKEND')
|
||||||
&& App::blog()->isDefined()
|
|
||||||
&& App::auth()->check(App::auth()->makePermissions([
|
&& App::auth()->check(App::auth()->makePermissions([
|
||||||
App::auth()::PERMISSION_ADMIN,
|
App::auth()::PERMISSION_ADMIN,
|
||||||
App::auth()::PERMISSION_CONTENT_ADMIN,
|
App::auth()::PERMISSION_CONTENT_ADMIN,
|
||||||
|
|
Loading…
Reference in New Issue