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.
When used with bbPress, enabling debug mode shows this error message: "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.) "
When used with bbPress, enabling debug mode shows this error message: "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.) "
Changing the hook seems to maintain the desired functionality, w/o the error message. See also https://core.trac.wordpress.org/ticket/24169