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

Give access to WP Mail Log for specific user #97

Closed
githubyaya opened this issue Sep 12, 2019 · 2 comments
Closed

Give access to WP Mail Log for specific user #97

githubyaya opened this issue Sep 12, 2019 · 2 comments

Comments

@githubyaya
Copy link

We are using WP Mail Log - its a great plugin, thank you for that!

We have a customer support team who have restricted access to our WP Backend. We would like them to have access to WP Mail Log, to be able to use the email history to help specific clients. However, as we have restricted Capabilites for this particular User Role in WP, unfortunately our customer service cannot see WP Mail Log in the WP Admin meny from the backend.

When looking at all Roles that can be enabled or disabled in WP, there are many plugins that have defined roles particular for that plugin. But for WP Mail Log, we cannot find any user roles that seems to be defined specifically for this plugin. Therefore, we struggle to give our customer sopport access to the WP Mail Log, without giving them access to "everything".

Would you consider building functionality such that granting granular access to this plugin would be possible when setting up WP users and roles?

I am happy to provide screen shots or more info if required.

With kind regards/Fredrik

@No3x
Copy link
Contributor

No3x commented Sep 12, 2019

Hi @githubyaya,
WordPress capability management is flexible enough to manage this on your own! And I think this is the proper way.

  1. You just need to create a new capability e.g. wp_mail_logging_own_view_log and
  2. add this role to a group and
  3. add a user to this group.
  4. Make sure to select this new capability (wp_mail_logging_own_view_log ) in the WP Mail Logging settings ("Can See Submission data - Select the minimum role" btw. this should be named capability instead of role)

This can be done with the Members plugin or similar.
After this the user can only see the Log and the About page. image

@donmhico
Copy link
Contributor

@githubyaya - Thanks for creating this issue. What @No3x mentioned in his last comment is correct. You can create a new or assign an existing capability to a user then set this capability in Dashboard -> WP Mail Logging -> Settings -> Can See Submission Data to allow access to WP Mail Logging logs to a specific user(s).

https://a.supportally.com/i/2X9LCA

I'm closing this issue as the original question was answered and there are no new activity in this issue since then.

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

No branches or pull requests

3 participants