Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Wordfence – wf2fa_activate_2fa_selfShow on the screenshot what part of what page your custom role can not see.
Plugins uses custom post type mec_event with default ‘post’ capability type, so author role will work with events the same way as it does with posts.
It depends from the plugin do you use for work with events. If events calendar uses WordPress custom post types then user can work with them exactly the same way as author works with WP built-in posts. It’s possible to manage this via user capabilities granted to a role.
Forum: Plugins
In reply to: [User Role Editor] List of created usersUnfortunately any custom permission requires the piece of code which will check it. Like if you add ‘list_created_users’ capability, you should have a code which will check it
if ( current_user_can('list_created_users') ) { // Show the list of users created by current user ...and only then show the needed data.
Forum: Plugins
In reply to: [User Role Editor] How do I disable the ‘ghosted’ options for Shop Manager?URE shows user’s capabilities (Users->selected user->Capabilities page) as greyed-out (read-only) in case when they were granted via user role(s). You can not revoke (switch off) such capability at user level – only via role editing.
You have 2 variants – build role which will not contain unneeded user capabilities and grant it to a user, or grant to a user some minimal role, like ‘subscriber’ or your own custom one and then add other capabilities directly to this user.
Forum: Plugins
In reply to: [User Role Editor] Media upload issue for userIn general contributor does not have permission to upload images, but author has one. ‘upload_files’ user capability is required for this.
Frontend uploader you use may make its own permissions checking, about which I can say nothing.
Forum: Plugins
In reply to: [User Role Editor] Undefined property: URE_User_View::$multisite in debug.logIt’s a built-in logic of WP Staging plugin for the staging site. Look at the Frontend/Frontend.php file, lines #72, #101, etc.
/** * Check permissions for the page to decide whether or not to disable the page */ public function checkPermissions() { $this->resetPermaLinks(); if ($this->showLoginForm()) { $login = new LoginForm(); if ($this->accessDenied) { wp_logout(); $login->setError(__('Access Denied')); } $overrides = [ 'label_username' => __('Username or Email Address'), ]; $login->renderForm($login->getDefaultArguments($overrides)); die(); } } /** * Show a login form if user is not authorized * @return bool */ private function showLoginForm() { $this->accessDenied = false; if ($this->isLoginPage() || is_admin()) { return false; } if (! $this->isStagingSite()) { return false; } // Allow access for administrator if (current_user_can('manage_options')) { return false; }Forum: Plugins
In reply to: [User Role Editor] Undefined property: URE_User_View::$multisite in debug.logHi,
You can replace mentioned line #145 with this version:
if ($this->lib->is_super_admin() || !is_multisite() || !class_exists('User_Role_Editor_Pro') || !$caps_access_restrict_for_simple_admin) {to exclude the warning about undefined URE_User_View::#multisite property.
I will fix this with the next update. Thank you.
A you sure that user is really logged-out, but not just redirected to the front-end?
Forum: Plugins
In reply to: [User Role Editor] restrict permissions to woocommerceHello,
It’s possible to see/edit all orders without ‘manage_woocommerce’ capability. You can build such role with free version of URE. Look at this article as the example.
Forum: Plugins
In reply to: [User Role Editor] How i can add a command to edit my own profile?Hi,
There is no special user capability for access to user’s profile himself. Subscriber with his ‘read’ capability can access his user profile, change password, etc – by default. If this is not true, some plugin or theme changed this. Try to deactivate all plugins, activate WordPress default 2021 theme and make new test. If issue will go away, activate plugins back one by one, return to your theme, to isolate a reason.
Forum: Plugins
In reply to: [User Role Editor] Cant access Customize pageIf you did not resolve a problem yet, show ful list of capabilities you granted to such user role.
Forum: Plugins
In reply to: [User Role Editor] restrict permissions to woocommerceYes, it’s possible. Revoke ‘manage_woocommerce’ capability from the ‘Store manager’ role.
Forum: Plugins
In reply to: [User Role Editor] Can’t assign custom role to post as authorYou have to re-assign a custom role to a user after you updated role and added levels capabilities to it. Grant to a user another role, save changes, then grant a custom role back. WordPress updates user level information after every role change.
Forum: Plugins
In reply to: [User Role Editor] RedirectHi,
No, URE does not make any redirections.
Forum: Plugins
In reply to: [User Role Editor] Urgent need to set order manager roleHi,
Try this role.