From 30eedebed9a666a7ff51aab6a387b98dd3fb3d38 Mon Sep 17 00:00:00 2001 From: alekseybobkov Date: Thu, 19 Nov 2015 21:02:10 -0800 Subject: [PATCH] Added the ability to load plugin permissions from the plugin.yaml file. Minor improvement in the side panel behavior. --- modules/backend/assets/js/october-min.js | 6 ++++-- modules/backend/assets/js/october.sidepaneltab.js | 15 ++++++++++++--- modules/system/classes/PluginBase.php | 7 ++++++- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/modules/backend/assets/js/october-min.js b/modules/backend/assets/js/october-min.js index 751afbc89..484457b85 100644 --- a/modules/backend/assets/js/october-min.js +++ b/modules/backend/assets/js/october-min.js @@ -1133,7 +1133,8 @@ this.$fixButton=$('getConfigurationFromYaml(); + if (array_key_exists('permissions', $configuration)) { + return $configuration['permissions']; + } } /**