awesomemotive / wp-mail-logging

:envelope: Logs each email sent by WordPress.
49 stars 24 forks source link

User capability and settings visibility issue #169

Closed donmhico closed 1 year ago

donmhico commented 1 year ago

Expected Behavior

There are 2 expected behaviors when setting "non-admin" capability to "Can See Submission Data" - https://a.supportally.com/i/kGDQ4Z

  1. They should only see the "Email Log" tab.
  2. Only the admin can see and access the "Settings" and "SMTP" tabs.

Current Behavior

"Non-admin" users can see "Settings" and "SMTP" tabs if they are given the capability to see submission data.

Steps to reproduce

  1. Navigate to your Dashboard -> WP Mail Logging -> Settings. Set "Can See Submission Data" to "Level 0" and save. https://a.supportally.com/i/kGDQ4Z
  2. Create a new WP User with "Subscriber" role.
  3. Login as the new subscriber user.
  4. Navigate to Dashboard -> WP Mail Logging.
  5. Notice that you can see and access both "Settings" and "SMTP" tabs.