Forum Replies Created
-
AuthorPosts
-
18/02/2025 at 11:52 in reply to: Multisite – Capabilities reset when restricting access to a plugin #8806
Vladimir
KeymasterTake into account that when you click “Update Network” at “Network Admin->Users->User Role Editor” URE overwrites user roles and add-ons settings data made for those roles for all subsites with user roles and add-ons settings data taken from the main site. Every site has the same roles and add-ons settings after this operations.
I suppose this explains why you lose the role(s) capabilities at the subsite level after the “Network Update” usage. This operation is for exact replication of main site roles data to all subsites.
Vladimir
KeymasterThanks for letting us know.
Vladimir
KeymasterHi @edering,
I can not reproduce the described issue with provided code sample. I suppose that your site plugins and data are involved.
Is it possible to take a copy of the stage site with such issue (without critical data) using UpdraftPlus WP backup plugin (database export .sql file and and plugins, themes folders)? If Yes, send URL and credentials to support email. I will setup it at my local development environment and try catch a reason.
Vladimir
KeymasterI wrote about URE Pro’s add-on not GF’s one. Look at the Settings->URE->Additional Modules.
Gravity Forms plugin should be active.04/12/2024 at 06:21 in reply to: tons of notice – _load_textdomain_just_in_time was called incorrectly #8772Vladimir
KeymasterVersion 4.64.3 includes needed update.
02/12/2024 at 01:34 in reply to: tons of notice – _load_textdomain_just_in_time was called incorrectly #8766Vladimir
KeymasterThank you. Update is almost ready. I will publish it in a couple of days.
Vladimir
KeymasterHi,
Possibly, Yes, it would be another reason.
URE automatically adds all needed permissions to WP built-in ‘administrator’ role on installation. So your user should have ‘administrator’ role to definitely have access to URE.Vladimir
KeymasterThere are no links to images in your prev. message.
Is Flamingo available for free? Send download link to support [at-sign] role-editor.com
I will can check needed user capability myself then.Vladimir
KeymasterHi,
User does not have needed capability. Use “Admin menu add-on” to know, what it is.
If you wish to see full list of administrator menu items open “Admin menu” for the “Administrator” role.
There is no sense to block menu items for administrator. So checkboxes are unavailable here. It is a very good start point for WordPress menu user permissions study and research. You may use “Admin Menu” dialog here as the reference for your work with roles and capabilities as “Admin Menu” shows what user capability restricts access to what admin menu item including menu items added by active plugins.Some plugins use own user capabilities, some plugins use one from WordPress built-in capabilities, like ‘manage_options’, ‘edit_posts’, etc.
The 1st step is to look what capabilities plugin uses to protect its menu. Open “Admin menu” for the ‘Administrator’ role, find needed menu item and look to the ‘User Capability’ column.
Vladimir
KeymasterIf you mean take the same capabilities which granted directly to a user and grant them to a selected role, No, URE does not have such feature.
Vladimir
KeymasterHi,
Try to deactivate URE.
If this fix the problem, activate URE back, go to URE settings and look if the “Additional modules” – “Activate Administrator Menu Access module” option is turned ON. If Yes, check, what options is set for “Admin menu” for user role, which can not see ‘Posts’ menu, like ‘contributor’ one.17/09/2024 at 03:42 in reply to: Event category taxonomy not accessible, need to allow it to be selected #8724Vladimir
KeymasterTry this filter ‘ure_post_edit_access_restricted_taxonomies’. For example, I excluded post tags from edit restrictions and restricted user can assign tags to the edited post inspite of those IDs, were not included into allowed categories/taxonomies list.
add_filter('ure_post_edit_access_restricted_taxonomies', 'not_restrict_tags', 10, 1); function not_restrict_tags( $taxonomies ) { foreach( $taxonomies as $key=>$taxonomy ) { if ( $taxonomy==='post_tag' ) { unset( $taxonomies[$key] ); } } return $taxonomies; }
Vladimir
KeymasterHi Marci,
When we list shop orders pages WC adds to URL ‘paged=
‘ argument. My test shows that it’s processed normally by default for both “blocked selected” and “block not selected” options at the “Admin menu” dialog. Deactivate “Admin menu” add-on, login under test user and list pages. Look what arguments you see at the URL in addition to the ‘custom_type’ and ‘pages’.
Vladimir
Keymaster1st, “Admin menu access blocking” is not replacement to the initial user permissions. I recommend 1st revoke from a role all capabilities which are not needed. And block rest unneeded admin menu items using “Admin menu” only after that.
For example, it’s quite better to revoke from a role all ‘strong_testimonials_’ capabilities. It will automatically makes unneeded ‘Testimonials’ submenu items unavailable.
Btw., I see that you correctly revoked from ‘BBTC Admin’ role ‘rm_’ capabities. It’s right.
What admin menu items selection are not saved when you try to select them in the “Admin menu” dialog?
Vladimir
KeymasterIf it is possible to get admin access to this site for testing (development copy is preferred), send site URL and admin user credentials, test role ID to support [at-sign] role-editor.com
-
AuthorPosts