Multisite capability problem
-
Great plugin. The basic email functionality works perfectly.
However, on multisite where the plugin is activated (or not) on a site by site basis, you seem to have a little problem with capabilities.
Typically, an Administrator role would run a site, but your capability name of ‘manage_postman_smtp’ isn’t assigned to an admin and if you have a check for an administrator role, it doesn’t seem to be working. As a result, a regular admin can’t see the plugin settings screens (they don’t appear in the menus), even after the plugin is activated. If you know the URL’s, you get a permissions error. A superadmin can see them on the menus and successfully reach them because superadmins by default have all capabilities.
A workaround is to activate https://ww.wp.xz.cn/plugins/members/ and to add a custom capability of ‘manage_postman_smtp’ to the Administrator role. That way, an admin can effectively use the plugin.
Also, it looks like lines 5 & 6 of PostmanAdminController.php are a duplicate of:
require_once ‘PostmanState.php’;
Hope that helps.
The topic ‘Multisite capability problem’ is closed to new replies.