Title: Multi-Site Settings
Last modified: August 22, 2016

---

# Multi-Site Settings

 *  [abrautigam](https://wordpress.org/support/users/abrautigam/)
 * (@abrautigam)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/multi-site-settings/)
 * I’m developing a multi-site blog. I want to use CAS for login, but I don’t want
   sub-site administrators to have access to the settings. If I hide CAS Maestro
   from them, it doesn’t work on sub-sites because the settings are blank.
 * I’ve found how to set the default values and hide the plugin by making changes
   in cas-maestro.php, but it resets when the plugin is updated. Is there a builtin
   way to accomplish this, or at least set all sites’ settings from the main site?
   I know other ways to hide the plugin from sub-site administrators.
 * [https://wordpress.org/plugins/cas-maestro/](https://wordpress.org/plugins/cas-maestro/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [md3281_columbia](https://wordpress.org/support/users/md3281_columbia/)
 * (@md3281_columbia)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173348)
 * I am having this same issue. Network Activation of this plugin gives all users(
   regardless of permissions) access to the configuration user interface for Cas
   Maestro.. which is obviously a disaster for multi-site installations.
 * Is there a possibility we could limit the appearance of this configuration UI
   to super admins in the next Cas Maestro release or commit to GitHub??
 * This would be much appreciated as a fix from my side would not 100% ensure upgrade
   portability.
 *  Thread Starter [abrautigam](https://wordpress.org/support/users/abrautigam/)
 * (@abrautigam)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173349)
 * It’s not enough to limit the configuration page to Super Admins. There are other
   plugins that can hide it from everyone else. If you hide it, the settings stay
   blank and it doesn’t work on the sub-sites. For now, I’ve cloned the plugin, 
   and changed its name/ folder so that it won’t update, and activated it. I’ve 
   installed but not activated the original, so it will let me know when to manually
   update the other, so my settings are not lost.
 * In /wordpress/wp-content/plugins/**cas-maestro_NO_Update**/cas-maestro.php
 *     ```
       /*
       Plugin Name: CAS Maestro NO Update
       Plugin URL:
       Description: This does not update: Make sure to manually update after CAS Maestro auto-updates
       Version: 1.1.3
       Author: Modified by Al
       Author URI:
       Text Domain: CAS_Maestro_NO_Update
       */
       // This version does not update: Let the original version update itself then copy all files but this one to this folder.
       // Make sure the modifications, including this header, are made to a copy of this file. Then replace this file with the updated and modified file.
       /*
       ```
   
 * Then I altered the constructor to set the defaults I needed:
 *     ```
       /**
            * Initializes the plugin by setting localization, filters, and administration functions.
            */
           function __construct() {
   
               //Initialize the settings
                $default_settings = array(
                        'cas_menu_location'=>'sidebar',
                        'new_user' => false,
                       'email_suffix' => '@email.edu',
                       'cas_version' => "1.0",
                       'server_hostname' => 'cas.server.edu',
                       'server_port' => '###',
                       'server_path' => '***',
                       'e-mail_registration' => 1,
                       'global_sender'=>get_bloginfo('admin_email'),
                       'full_name' => '',
                       //Welcome email
       ```
   
 * To hide the configuration page, replace the entire register_menus function with
   this:
 *     ```
       function register_menus()
       {
           get_currentuserinfo();
           if (is_super_admin( $current_user->ID )){
           {
                   switch($this->settings['cas_menu_location']) {
                       case 'sidebar':
                           $settings_page = add_menu_page(__('CAS Maestro Settings', "CAS_Maestro"),
                               __('CAS Maestro', "CAS_Maestro"),
                               'manage_options',
                               'wpcas_settings',
                               array(&$this,'admin_interface'),
                               '',
                               214);
                           break;
                       case 'settings':
                       default:
                           $settings_page = add_options_page(__('CAS Maestro', "CAS_Maestro"),
                               __('CAS Maestro', "CAS_Maestro"), 8,
                               'wpcas_settings',
                               array(&$this,'admin_interface'));
                           break;
                   }
                   add_action( "load-{$settings_page}", array(&$this, 'onLoad_settings_page') );
               }
           }
       }
       ```
   
 *  Thread Starter [abrautigam](https://wordpress.org/support/users/abrautigam/)
 * (@abrautigam)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173368)
 * If you just need the CAS login, and maybe automatic account creation, just use
   WPCAS. Use the wpcas-conf.php file, as instructed. This will hide the settings
   from everyone, and set them. It won’t get overwritten when it’s updated, either.
   If you need automatic account creation, change the function at the bottom of 
   wpcas-conf.php to:
 *     ```
       function wpcas_nowpuser( $user_name ){
           wp_create_user($user_name, '', $user_name.'@sulross.edu');
           wp_redirect('wp-admin/');
       }
       ```
   
 * or whatever account creation code you choose. This is the function to put it 
   in.
 *  Plugin Author [Henrique Mouta](https://wordpress.org/support/users/vaurdan/)
 * (@vaurdan)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173393)
 * Hey guys, just letting you know that we are working on a solution for this.
 * Henrique
 *  [DenkSchuldt](https://wordpress.org/support/users/denkschuldt/)
 * (@denkschuldt)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173406)
 * Hi Henrique. I’m also using this plugin for a Multisite installation. Will we
   have a solution for this soon?
 * Thanks!
    Regards, Denny.
 *  [cfeskens](https://wordpress.org/support/users/cfeskens/)
 * (@cfeskens)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173410)
 * I’d also like to chime in begging for multisite support. CAS Maestro is great,
   and I was looking forward to using this when updating my multisite instance.
 *  [manakuke](https://wordpress.org/support/users/manakuke/)
 * (@manakuke)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173411)
 * Would much appreciate multisite as well 🙂
 *  [MacMike99](https://wordpress.org/support/users/macmike99/)
 * (@macmike99)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173426)
 * Would also love to have Multisite ability that sets defaults for all sub-sites
   but does not give them access to the settings.
 * What is the status of the update for Multisite?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Multi-Site Settings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cas-maestro_009fe3.svg)
 * [CAS Maestro](https://wordpress.org/plugins/cas-maestro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cas-maestro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cas-maestro/)
 * [Active Topics](https://wordpress.org/support/plugin/cas-maestro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cas-maestro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cas-maestro/reviews/)

 * 8 replies
 * 7 participants
 * Last reply from: [MacMike99](https://wordpress.org/support/users/macmike99/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/multi-site-settings/#post-5173426)
 * Status: not resolved