cosmetic
This commit is contained in:
parent
208963952c
commit
4ec3ac9610
3 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
enhancePostContent 2023.10.11
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
* Require PHP 8.1
|
||||
* Code review
|
||||
|
||||
enhancePostContent 2023.10.08
|
||||
===========================================================
|
||||
* Require Dotclear 2.28
|
||||
|
|
|
@ -13,7 +13,6 @@ use Dotclear\Helper\Date;
|
|||
use Dotclear\Helper\Html\Form\Checkbox;
|
||||
use Dotclear\Helper\Html\Html;
|
||||
|
||||
|
||||
/**
|
||||
* @brief enhancePostContent filters list class.
|
||||
* @ingroup enhancePostContent
|
||||
|
@ -92,4 +91,4 @@ class BackendList extends Listing
|
|||
implode($cols) .
|
||||
'</tr>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
11
src/My.php
11
src/My.php
|
@ -21,10 +21,11 @@ class My extends MyPlugin
|
|||
{
|
||||
return match ($context) {
|
||||
// Limit main backend featrues to content admin
|
||||
self::BACKEND, self::MANAGE, self::MENU =>
|
||||
App::auth()->check(App::auth()->makePermissions([
|
||||
App::auth()::PERMISSION_CONTENT_ADMIN,
|
||||
]), App::blog()->id()),
|
||||
self::BACKEND, self::MANAGE, self::MENU => App::auth()->check(App::auth()->makePermissions([
|
||||
App::auth()::PERMISSION_CONTENT_ADMIN,
|
||||
]), App::blog()->id()),
|
||||
|
||||
default => null,
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue