Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Intranet-Plugin configuration on user basis

    Plugins for Kopano WebApp
    3
    6
    748
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mniehren
      mniehren last edited by

      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

      1 Reply Last reply Reply Quote 0
      • marty
        marty Kopano (Inactive) last edited by

        @mniehren

        Have a look at the webapp-admin tool
        https://stash.kopano.io/projects/KSC/repos/webapp-tools/browse/webapp_admin/

        You can use --add-option

        But I advise you to use this in a test environment first.

        https://documentation.kopano.io/deskapp_admin_manual
        http://documentation.kopano.io/webapp_smime_manual
        https://documentation.kopano.io/webapp_admin_manual

        mniehren 1 Reply Last reply Reply Quote 0
        • mniehren
          mniehren @marty last edited by

          @marty

          Could you please give me an example how to use it
          to add 1 more site to the intranet plugin ?

          best regards
          Michael

          externa1 1 Reply Last reply Reply Quote 0
          • externa1
            externa1 @mniehren last edited by

            @mniehren

            you have to add it in the /etc/kopano/webapp/config-intranet.php file like:

            4a002686-002d-4bdc-8688-7691a801253f-grafik.png

            rg
            Christian

            mniehren 1 Reply Last reply Reply Quote 0
            • mniehren
              mniehren @externa1 last edited by

              @externa1

              that ist the global config for all users, but not for individual settings

              1 Reply Last reply Reply Quote 0
              • mniehren
                mniehren last edited by mniehren

                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,
                
                
                1 Reply Last reply Reply Quote 2
                • First post
                  Last post