Forum Replies Created
-
AuthorPosts
-
12/11/2023 at 03:07 in reply to: Allow access to WooCommerce “Wholesale” category only to “wholesale” Role #8557VladimirKeymaster
Hi,
Try to use access error action “HTTP 404 error” instead. It fully excludes product from the search and listing, while “Show error message” replaces only product full description and does not restrict access to the product meta fields, which contain price, size, color, etc.
VladimirKeymasterHi,
I don’t have other idea that try to test this with PHP debugger. If you can provide admin access (dev. copy without critical data is preferred) send credentials to support [at-sign] role-editor.com
07/11/2023 at 10:00 in reply to: Possible conflict with GeneratePress and The Event Calendar (TEC) plugins #8551VladimirKeymasterHi,
Let’s return to the testing using the fresh copy with the latest versions of software. Send credentials of dev.copy to support[at-sign]role-editor.com in order I can take a copy of the database and plugins/theme files. I will try to repeat the issue according to your testing scenarios and catch the bug(s).
VladimirKeymasterIs user granted the single role only? May be the 2nd role has menu access restrictions?
VladimirKeymasterHi,
Do you use Admin menu access add-on? If Yes, and access model is “Not Selected” re-read carefully the “Block not selected” part of this article.
VladimirKeymasterHi,
You can grant ‘manage_options’ to the selected role. Then using “Admin menu blocking” add-on block admin menu items, to which you don’t wish to give access for this role.
VladimirKeymasterThanks for the help and feedback.
VladimirKeymasterYou should see the similar result:
option_name field contains URE internals ID used by add-ons to save its data.
Roles ID would be found inside the option_value field for every record. It’s a string where a serialized PHP array data are stored.
VladimirKeymasterLook at wp_options db table (wp_ is db prefix):
SELECT * FROM wp_options WHERE option_name like 'ure%';
All data are serialized arrays.VladimirKeymasterUnderstand.
There is no UI in plugin to automatically move add-ons data linked to the older role to a new one.
VladimirKeymasterHi WUCW,
You can not do it directly. Workaround, create a new role name2 as a copy of nor name1. Then revoke role name1 from all users, whom it’s granted and grant them new role name2.
VladimirKeymasterHi Sachin,
Unfortunately, developer of UCI plugin hardcoded that its admin menu is shown for the user with administrator role only:
public static function show_admin_menus(){
$ucisettings = get_option('sm_uci_pro_settings');
if( is_user_logged_in() ) {
$user = wp_get_current_user();
$role = ( array ) $user->roles;
}if(!empty($role) && in_array( 'administrator' , $role)){
if ( is_user_logged_in() && current_user_can('manage_options') ) {
add_action('admin_menu',array(__CLASS__,'testing_function'));
}
}$first_activate = get_option("WP_ULTIMATE_CSV_FIRST_ACTIVATE");
if($first_activate == 'On'){
delete_option("WP_ULTIMATE_CSV_FIRST_ACTIVATE");
exit(wp_redirect(admin_url().'admin.php?page=wp-addons-page'));
}
}
This part is interesting for you from the code above:
if(!empty($role) && in_array( 'administrator' , $role)){
if ( is_user_logged_in() && current_user_can('manage_options') ) {
add_action('admin_menu',array(__CLASS__,'testing_function'));
}
}
VladimirKeymasterHi Levent,
WPML provides own permissions system to the translated content. It supports the list of translators and allows to define for every translator the list of allowed languages. It should be enough to solve your task.
VladimirKeymasterYes, of course – this week, to be more exact.
VladimirKeymasterHi,
Yes, short video will be helpful as scenario to repeat the issue.
-
AuthorPosts