Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterActivate ‘edit posts access restrictions’ additional module and set “Allow ‘Own data only'” restriction for your ‘Applicant’ role:
Vladimir
KeymasterHi,
The code of this method is here:
public function is_restriction_aplicable() { if ($this->lib->multisite && is_super_admin()) { return false; } if (!$this->lib->multisite && current_user_can('administrator')) { return false; } return true; }
It means: do not restrict superadmin for WP multisite and do not restrict user with ‘administrator’ role for single WP.
Vladimir
KeymasterIt’s possible. Do you have any problem with it?
Vladimir
KeymasterHi,
This shortcode does not produce a content itself. When you use it inside post content you enclose a part of content inside this shortcode, e.g.
[user_role_editor ...]content to show[/user_role_editor]
You can use this logic inside your template code:if (current_user_can('agent')) { echo 'You can see this'; } else { echo 'You can not see this'; }
Or set this restriction for the ‘agent’ role using ‘Posts View’ button from posts view restriction module. You may use some category ID assigned to all post of that type for that.
Vladimir
KeymasterHi,
If use URE Pro, then it’s possible on the base of role and categories assigned to the posts.
If you write theme template page yourself, then Yes, it’s possible to check current user ID and show needed subset of CPT posts.
Vladimir
KeymasterI installed the Blogghiamo Free theme to the test site. I tried to search a post not available for the current user. It was not found.
Could you provide me more details or give me access to the site to check an issue online?
Vladimir
KeymasterHi,
This module will help you to block ‘Sermon’ for authors.
Vladimir
KeymasterHi,
Sermon Manager plugin uses WordPress built-in user capabilities
Vladimir
KeymasterI need to repeat this to check and fix. What theme do you use?
Vladimir
KeymasterHi Ronaldus,
Yes, ‘manage_options’ is about site settings. It protects the ‘Settings’ menu. The most often it’s used by plugins which add menu item to the ‘Settings’ menu. So it’s just the Canvas theme’s developer choice.
Check that you did not give to the user with ‘manage_options’ much more permissions than you initially planned. May be you need to block some extra menu items with Admin menu blocking module.
Vladimir
KeymasterIt’s possible with WordPress multisite where you may revoke some capabilities from single site ‘administrator’ role.
You may fake ‘Ultimate Auction Pro’ plugin by adding a user capability with ‘administrator’ ID to the user role. But be ready that such user will get access to any other plugin which similar uses ‘administrator’ role to protect access to its functionality.
19/05/2016 at 04:29 in reply to: Seprating the Page IDs and Custom Post Type IDs when "allowing or prohibiting" #2352Vladimir
KeymasterHi Garrett,
I published version 4.25.1. It includes
ure_restrict_edit_post_type
filter, which allows to achieve your purpose. The example of this filter usage is available here:Vladimir
KeymasterHi Ronaldus,
Canvas theme uses ‘manage_options’ capability to protect all its submenu items except ‘Settings’, which uses ‘edit_theme_options’ as expected.
Vladimir
KeymasterUltimate Auction Pro plugin uses directly ‘administrator’ role to protect all its menu items. Moreover it intensively checks if user has the ‘administrator’ role through its code.
This means that is no chance to replace ‘administrator’ to some other role without headache after every plugin update.Contact plugin developer. It’s quite better to use user capabilities (or custom role) to protect the plugin, in order a client may decide himself to whom allow to use this plugin.
Vladimir
KeymasterIt was in a SPAM folder. Thanks for the note. There is no need to re-send.
-
AuthorPosts