fix repository branch
This commit is contained in:
parent
1725d7fb29
commit
4263865907
11 changed files with 27 additions and 22 deletions
|
@ -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
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# README
|
||||
|
||||
[![Release](https://img.shields.io/badge/release-2.5.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/moreCSS/releases)
|
||||
![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg)
|
||||
[![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.23-c44d58.svg)
|
||||
[![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)
|
||||
[![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
|
||||
* PHP 8.1+
|
||||
* content admin permissions to manage CSS
|
||||
* Dotclear content admin permissions to manage CSS
|
||||
|
||||
## USAGE
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ $this->registerModule(
|
|||
'Style sheet',
|
||||
'Another CSS stylesheet for the active theme',
|
||||
'Osku and contributors',
|
||||
'2.5.1',
|
||||
'2.5.2',
|
||||
[
|
||||
'requires' => [['core', '2.28']],
|
||||
'permissions' => 'My',
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="moreCSS">
|
||||
<name>Style sheet</name>
|
||||
<version>2.5.1</version>
|
||||
<version>2.5.2</version>
|
||||
<author>Osku and contributors</author>
|
||||
<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: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>
|
||||
|
|
|
@ -20,9 +20,8 @@ class My extends MyPlugin
|
|||
protected static function checkCustomContext(int $context): ?bool
|
||||
{
|
||||
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')
|
||||
&& App::blog()->isDefined()
|
||||
&& App::auth()->check(App::auth()->makePermissions([
|
||||
App::auth()::PERMISSION_ADMIN,
|
||||
App::auth()::PERMISSION_CONTENT_ADMIN,
|
||||
|
|
Loading…
Reference in a new issue