Can’t override roles
-
Hi!
You released an update to override roles and documented it.
But it isn’t working.
I wrote a topic here before but you marked it as resolved, which it isn’t.So this is the code I pasted to my functions:
add_filter( 'mfrh_allow_usage', 'mfrhAllowUsage'); function mfrhAllowUsage( $allow ) { return current_user_can( 'editor' ) || $allow; } add_filter( 'mfrh_allow_setup', 'mfrhAllowSetup'); function mfrhAllowSetup( $allow ) { return current_user_can( 'editor' ) || $allow; }
But it does not change a thing.
Is it correct?
Your help is really appreciated ??Thanks a lot!
Best regards,
Teresa
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Can’t override roles’ is closed to new replies.