From 935d73f3f307c5caf6d76659ba3f1f1dd83d16a2 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Thu, 19 Dec 2019 15:32:04 +0100 Subject: [PATCH] permissions for settings access --- Plugin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Plugin.php b/Plugin.php index 2eaf74e..da450d4 100644 --- a/Plugin.php +++ b/Plugin.php @@ -61,6 +61,16 @@ public function xmd($text) return $data->text; } + public function registerPermissions() + { + return [ + 'mossadal.extendmarkdown.settings' => [ + 'tab' => 'ExtendMarkdown Plugin', + 'label' => 'Access Settings' + ], + ]; + } + /** * Register the extended Markdown parser as a Twig filter. * @@ -89,6 +99,7 @@ public function registerSettings() 'icon' => 'icon-user-md', 'order' => 700, 'category' => SettingsManager::CATEGORY_CMS, + 'permissions' => ['mossadal.extendmarkdown.settings'] ] ]; }