Giter Club home page Giter Club logo

remove-dashboard-access's People

Contributors

drewapicture avatar zackkatz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

remove-dashboard-access's Issues

Test for ABSPATH in all files?

I had come to believe that it was good practice to test if ABSPATH was defined in all the PHP files of a plugin, and I see you only test for it in the main top-level file.

I don't know if this is an issue or not, but raising this for at least consideration.

Prevent unintentional lock-out

Over the life of this plugin, several users have ended up getting locked out of the back-end of their own sites because they set a capability that their user didn't actually have.

In brainstorming how to implement some kind of fail-safe mechanism to prevent unintentional lock-out, I think the best option would be to simply do a cap check when the access setting is changed to warn the current user if they don't have the given capability. This could either be tied directly to the access setting change event or trigger it on settings save.

Bundle Whip

Maybe we should whip package from Yoast to encourage PHP upgrades. Haven't decided yet though.

bbPress and BuddyPress Compatibility

This plugin is not compatible with bbPress and BuddyPress in it's current format.

Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in/wp-includes/functions.php on line 3547 Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /wp-includes/functions.php on line 3547

This is easy enough to fix. In remove-dashboard-access.php wrap everything after line 15 in a function and then add add_action( 'init', 'your_function'); and everything should work fine.

Ability to whitelist exception URLs

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

Check for profile page looks incorrect/incomplete

I am using a plugin that let's me modify the user profile from front-end. But with this plugin, the plugins doesn't work even when "Enable Profile" is true. I guess the check for profile page in the code below looks incorrect. I have suggested the change. Let me know what you think.

Current way :

function dashboard_redirect() {
		/** @global string $pagenow */
		global $pagenow;

		if ( 'profile.php' != $pagenow || ! $this->settings['enable_profile'] ) {
			wp_redirect( $this->settings['redirect_url'] );
			exit;
		}
	}

Suggested Way:

function dashboard_redirect() {
		if ( ! IS_PROFILE_PAGE || ! $this->settings['enable_profile'] ) {
			wp_redirect( $this->settings['redirect_url'] );
			exit;
		}
	}

Conflict between Remove Dashboard Access plugin and WP 2FA plugin

No problem for users who have already configured their 2FA but for new users, after entering their login details, when they would be sent to the 2FA setup, they get the "too many redirects" error. Fixed by deactivating Remove Dashboard Access plugin. Any fix that keeps this plugin usable?

User Profile Access

Thanks for your plugin!
Is it possible in option 'User Profile Access: Allow all users to edit their profiles in the dashboard' to limit by capability user's role too? For example, to view 'User Profile Access: Allow all users to edit their profiles in the dashboard' only editors/contributors and above could see it?

Add global network settings for multisite

One of the biggest requests over the years has been to add true network support for multisite, that is to say, when RDA is network activated have one set of canonical settings that works across the network.

Add Compatibility for Paid Memberships Pro Membership Manager Add On

The Paid Memberships Pro Membership Manager Add On (https://www.paidmembershipspro.com/add-ons/pmpro-membership-manager-role/) enables non-admins to access Paid Memberships Pro, which is great, however with the Remove Dashboard Access plugin active, access to Paid Memberships Pro is denied even though the menu is visible. These two plugins appear to be mutually exclusive; you can have one but not the other.

Is there a way to make these two plugins play nicely together?

OR

Could the Remove Dashboard Access plugin be refactored to select roles from a list rather than just having the three options (Administrators Only, Editors & Administrators, Authors, Editors, and Administrators)?

OR

Is there a way to enable certain plugins i.e. bypass the plugin? For example, Paid Memberships Pro in this case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.