trustedlogin / Remove-Dashboard-Access

This WordPress plugin limits user access to the dashboard based on whether users have a chosen capability. Disallowed users are redirected to a chosen URL.
https://wordpress.org/plugins/remove-dashboard-access-for-non-admins/
49 stars 12 forks source link

Ability to whitelist exception URLs #38

Closed whittede closed 9 months ago

whittede commented 2 years ago

Hi there,

I was just checking in to see if we are any closer to having exception URLs be implemented into this plugin.

The plugin aggressively redirects ALL traffic from the backend, including instances from automated services such as those trying to make AJAX requests.

It looks like people have asked for a feature for a "whitelist" of URLs that you can add here, here, here, and here.

It looks like here it was mentioned that this could become a feature. Is there a status update on implementing this? It severely limits use cases where this plugin can be implemented without it.

Thanks

whittede commented 2 years ago

Any updates on this?

zackkatz commented 9 months ago

@whittede This is now possible using the rda_allowlist filter.

There may be a need for an additional filter that checks against a full URL, but I wanted to start small and see if that addressed the requirements.

Resolved with f2546f2c2b8527947a85d248702f9bda7f8aaf93