Hi, here you find a small patch to the intranet-plugin, so
that you can setup settings for each user. If in the plugin
directory exists an file named config-intranet-<username>.php
it will also be loaded if the user is logged in.
best regards
Michael
@@ -33,6 +33,14 @@
*/
function injectPluginSettings(&$data) {
+ // Get the username from the Encryption store
+ $encryptionStore = \EncryptionStore::getInstance();
+
+ $user_config_file = PATH_PLUGIN_DIR . '/intranet/config-intranet-' . $encryptionStore->get('username') . '.php';
+ if (file_exists($user_config_file)) {
+ include($user_config_file);
+ }
+
$defaultIcon = PATH_PLUGIN_DIR . '/intranet/resources/icons/icon_default.png';
$pluginData = array(
'enable' => PLUGIN_INTRANET_USER_DEFAULT_ENABLE,