Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Issue #7 by adding new settings field to network admin settings… #8

Merged
merged 2 commits into from May 26, 2016
Merged

Fixes Issue #7 by adding new settings field to network admin settings… #8

merged 2 commits into from May 26, 2016

Conversation

sanghviharshit
Copy link
Contributor

… section

Allows super admin to choose if the settings can be overridden by site admins on individual sites. If not allowed, all the sites in the multisite must use the network settings, otherwise all the admins can choose their own settings for their own sites. Compatible with single site installation as well

… section

Allows super admin to choose if the settings can be overridden by site admins on individual sites. If not allowed, all the sites in the multisite must use the network settings, otherwise all the admins can choose their own settings for their own sites. Compatible with single site installation as well
@RavanH
Copy link
Owner

RavanH commented May 25, 2016

Great addition! Will review and merge soon...

@RavanH
Copy link
Owner

RavanH commented May 25, 2016

All looking good. I suppose you tested?

I see only one problem at least for one user. The reason I created the option for Super Admin to override settings per sub-site, is by request of a teacher running a multisite for the children on his school to create a new site per project. The children (being under-age) would not be allowed to create WP.com accounts so the teacher (Super Admin) would need to switch the dev mode option on but only on those sites managed by the children, but not other sites. He would not want to allow site admins to override because these are also school children, only Super Admins.

Now with your new option, I suppose (but have not verified) that if Site Admin is not allowed to override, it's also no longer possible for Super Admin to override?

@sanghviharshit
Copy link
Contributor Author

Yes, it has been tested in our multisite environment.

The setting field for subsite-override is inspired by Jetpack itself. Check the Jetpack settings from network dashboard when Jetpack is network activated.
jetpack network settings

So yes, this will cause issue for the one user that you mentioned. But in my opinion, this plugin should at least have this setting for allowing site admins to manage the modules.

To take care of the user that you mentioned, there needs to be an extra settings field that says, "Allow super administrators to manage settings for Jetpack Module Control on individual sites." and with this if the setting for site admins is not enabled, should only allow super admins to manage individual site settings.

What do you think?

@sanghviharshit
Copy link
Contributor Author

Also, I suppose you can make it a default behavior for super admins to be able to override subsites settings, but we have a huge multisite with a large number of super admins and I would not want any of them to change these settings by mistake while on subsite settings page and certainly not enable wordpress.com connection because it will allow Single Sign On from wordpress.com on the subsite and through that allow access to other subsites in the multisite. It becomes difficult to keep track of this when you have thousands of sites.

@RavanH
Copy link
Owner

RavanH commented May 26, 2016

But in my opinion, this plugin should at least have this setting for allowing site admins to manage the modules.

I totally agree, it was on the todo list. Your solution is great.

Also, I suppose you can make it a default behavior for super admins to be able to override subsites settings

That was my first thought, as it's also the current behaviour of the plugin. But your argument for multisites with multiple Super Admins that can make mistakes is a valid one. I'll need to work on a second option for Super Admins override before release on WP.org then...

@RavanH RavanH merged commit e72229f into RavanH:master May 26, 2016
@sanghviharshit
Copy link
Contributor Author

Thanks @RavanH will wait for the update on .org. By the way my username on .org is harshit_ps in case you would like to mention that somewhere ;)

@sanghviharshit sanghviharshit deleted the fix-7 branch June 6, 2016 17:45
@RavanH
Copy link
Owner

RavanH commented Jun 6, 2016

Will do and thanks again @sanghviharshit :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants