Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Neue Berechtigung hinzufügenHi Daniela,
‘Ninja Tables’ is allowed for ‘administrator’ role by default. It’s possible to change using custom filter
ninja_table_admin_role. For example, add ‘editor’ role to the list of allowed user roles:add_filter('ninja_table_admin_role', 'set_ninja_table_admin_role', 10, 1); function set_ninja_table_admin_role( $roles ) { $roles[] = 'editor'; return $roles; }You can add this code to the active theme’s functions.php file or install it as a Must Use plugin.
Forum: Plugins
In reply to: [User Role Editor] neue Berechtigung User Role EditorHi,
All items of “Ninja Forms” menu are protected by ‘manage_options’ user capability. Many plugins use WordPress built-in capability instead of own custom one.
- This reply was modified 3 years, 8 months ago by Vladimir Garagulya.
Forum: Plugins
In reply to: [User Role Editor] PHP snippet getting all roles issueYou may check directly at the database if all roles granted to your user saved at the database or they don’t. Example of checking user roles for admin user is here.
Forum: Plugins
In reply to: [User Role Editor] PHP snippet getting all roles issueHi,
In general, WP_User::roles property contains all roles granted to user.
So $user->roles property of WP_User record is a right place to check roles granter to a user.Some plugins do not store their roles at the database and may create and possibly grant them to user dynamically. You will not see such role at the $user->roles in the case you check it too early, before some plugin, for example.
Forum: Plugins
In reply to: [User Role Editor] error from convert-a-link handleIt seems, that you have the corrupted WordPress user roles database record.
Please read this article and look directly at the database, if user roles have the ‘name’ attribute. If they do not have ‘name’ attribute for some reason, you have to restore this database record value from the older backup, when they have it.
Forum: Plugins
In reply to: [User Role Editor] WP Dashboard doesn’t show up for RolesDoes this role has access to WP backend with URE deactivated?
If your ask about URE Pro, it’s better to write directly to role-editor.com support forum or support email. This forum is for free version only.
Forum: Plugins
In reply to: [User Role Editor] View Only RoleThere is no built-in read-only functionality in WordPress. Even to see the list of posts user should have ‘edit_posts’ capability.
Forum: Plugins
In reply to: [User Role Editor] Plugin ConflictHi,
If “Latepoint” is available at wordpress.org/plugins send its link for testing.
In other case it’s difficult to help without access to the plugin code.Forum: Plugins
In reply to: [User Role Editor] error from convert-a-link handleHi,
wp-includes/class-wp-roles.php is a part of WordPress core API for work with user roles and capabilities. WordPress itself and other plugins use it, not only User Role Editor (URE).
Will you still see similar notices in debug.log in case you deactivate URE?
Forum: Plugins
In reply to: [User Role Editor] Php 8.0Hello Siegfried,
If, it’s still actual. The most probable reason a jQuery conflict with other plugin. Do you see error messages at the browser JavaScript console (F12 at Google Chrome)? If Yes, try to deactivate all plugins except URE and test again. If it will help, activate plugins back one by one and test, to isolate a reason of the conflict.
Forum: Plugins
In reply to: [User Role Editor] Issue updating RoleContributor role does not include ‘upload_files’ capability by default. But it should be possible to grant additional capabilities to this role, until some plugin does not block this. Try to deactivate all plugins and update contributor role again. Test. Then activate plugins back one by one with a new test to isolate a reason.
Sometimes active theme functions.php file would be modified by developer and contain code which may be a reason of the issue.
Forum: Plugins
In reply to: [User Role Editor] the nightmare of “elementor template”You are right, “Templates” menu and “Save Templates”, “Add new” menu items are protected by ‘edit_posts’ user capability.
I successfully blocked them for ‘author’ role using “Admin menu access” add-on included into User Role Editor Pro.Forum: Plugins
In reply to: [User Role Editor] Hide Buddypress “Profile Fields” menu entryHi,
“Profile Fields” menu item is protected by ‘manage_options’ user capability.
In order to use manually added user capability, programming is needed to check user permission and allow/prohibit showing UI element or corresponding action.
URE allows to delete user capability only if it was not granted to any role, except ‘administrator’. Revoke this capability for roles. Then it will become available for deletion.
Forum: Plugins
In reply to: [User Role Editor] Question on FeaturesIt’s possible to disable top admin menu bar for selected role using additional option:
https://www.role-editor.com/documentation/hooks/ure_role_additional_options/URE Pro includes “Content view restrictions” add-on which allow to differentiate which pages what roles can view.
URE does not manage access to different WP Forms.
Forum: Plugins
In reply to: [User Role Editor] What happens to permissions if I uninstallAll changes are applied directly to WordPress database and stay AS IS after plugin deactivation and deletion. URE overwrites WP internal DB record when you save changes.
URE creates a copy of original DB record with user roles on the 1st activation.
You may manually copy data from there to restore the state before you change something.Look at the part III of this article for more details.