Intranet-Plugin configuration on user basis
- 
					
					
					
					
 Hi, currently the intranet-plugin can only be configured global, meen’s for 
 all Users. Would it be possible to modify it, that i can do an individual
 setting for each user ?best regards 
 Michael
- 
					
					
					
					
 Have a look at the webapp-admin tool 
 https://stash.kopano.io/projects/KSC/repos/webapp-tools/browse/webapp_admin/You can use --add-optionBut I advise you to use this in a test environment first. 
- 
					
					
					
					
 Could you please give me an example how to use it 
 to add 1 more site to the intranet plugin ?best regards 
 Michael
- 
					
					
					
					
 
- 
					
					
					
					
 that ist the global config for all users, but not for individual settings 
- 
					
					
					
					
 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,
 
			
		