Plugin Permission settings?
I have been using an old plugin called MassDelivery to generate mass emails to a small group of users on my forum. Even though it is quite old it has been working fine for me. Recently I have added a second administrator to the forum to help out when I am away and I have noticed that even though all his administrator role permissions are set the same as mine the new administrator does not have the mass delivery selection in the dashboard. I had him check the plugin in the dashboard and it is enable but the the plugin does not appear in the top left column of the dashboard under the category of "dashboard" like it does for me. I am running the 1.0 version of Mass Delivery by Ronnie and the 2.1.9 version of Vanilla. Any ideas on how to get this working for him?
Thanks
Comments
Without the source of that plugin, it would be very hard to help...
Here is a link to the plugin on github:
https://github.com/downloads/unlight/MassDelivery/MassDelivery-1.0.zip
It uses an old permission named 'Garden.Email.Manage' which doesn't exist in the latest version of Vanilla.
Change the plugin info array to register it (
'RegisterPermissions' => 'Garden.Email.Manage',
). Then disable/re-enable it. Now you should see a Garden.Email.Manage permission that your administrator role can get.For reference, this line is what you need to change: https://github.com/unlight/MassDelivery/blob/33ffff858227f18057708c58508e66176d2bd1f2/massdelivery.plugin.php#L11
The reason it works for you, and not him is due to you using a "super" admin account. Super admin accounts always pass all permissions checks regardless of the existence of the permission in the system for mere mortal admins.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks hgtonight and R_J. Did the edit and now the plugin works fine for both admins on our forum. This forum is super for someone who is not all that great at understanding all the coding.
This was super helpful - thanks!