First commit
This commit is contained in:
commit
3a568602da
36 changed files with 1584 additions and 0 deletions
24
event/permissions.php
Executable file
24
event/permissions.php
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Adds permissions to the Permissions page in the Admin CP
|
||||
*/
|
||||
|
||||
namespace pedodev\tagging\event;
|
||||
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
|
||||
class permissions implements EventSubscriberInterface
|
||||
{
|
||||
static public function getSubscribedEvents(): array
|
||||
{
|
||||
return [
|
||||
'core.permissions' => 'load_permissions',
|
||||
];
|
||||
}
|
||||
|
||||
public function load_permissions(object $event): void
|
||||
{
|
||||
$event->update_subarray('permissions', 'u_pedodev_tagging_cantagposts', ['lang' => 'ACL_U_PEDODEV_TAGGING_CANTAGPOSTS', 'cat' => 'post']);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue