[Resolved] [Plugin: Google Analytics for WordPress] Problem and solution with multisite network enabled site
Hello there, i would like to inform you about a problem we had with the google analytics plugin and how we solved it. Perhaps you will decide to make the change also.
We are using your plugin in a network mulitsite enabled wordpress. The users are all created automatically.
Since our users can only add other existing users to their blogs, but they can not edit them, they don’t have the ‘edit_users’ capability!
So while they can enable the ‘google analytics for wordpress’ plugin, when they try to go to the options page they get the message
that they don’t have permission.
We solved the problem by editing the file yst_plugin_tools.php at line 19
from – var $accesslvl = ‘edit_users’;
to + var $accesslvl = ‘activate_plugins’;
With the activate_plugins capability we still make sure that the logged in is an administrator and we can now access the options page without the permission error.
- The topic ‘[Resolved] [Plugin: Google Analytics for WordPress] Problem and solution with multisite network enabled site’ is closed to new replies.