Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
Try version 4.18.5. You may add
define('URE_LICENSE_KEY', 'your-license-key-here');
with it.
VladimirKeymasterThank you.
I fixed the issue without version change. So you may download 4.18.5 again and replace class-ure-lib-pro.php file with the latest one.There is no syntax error apparently at the line 36. But it is raised at PHP versions 5.4 and older. My fault that I did not test the update with earlier PHP versions.
Function is_license_key_editable() is used to show URE’s Settings page.
VladimirKeymasterHi,
I need your help to understand, reproduce and fix the issue.
Send to support [at-sign] role-editor.com the installation package of the “Events Manager Pro”. I will use at my localhost for the investigations purpose only.
Send/show a screenshot of a page where the restricted item is available in the list.VladimirKeymasterThanks, Tom.
It’s quite right decision when you can not input changes into the plugin source code – plugin author does not agree to apply suggested changes, for example.
As you take decisions yourself, you may take into account another model – use your own custom user capabilities to protect ‘Job Manager’ plugin menu items. For example, some times site owner may wish to give to the user access to the “Job Manager->Settings”, but he does not wish to give him access to the full “WordPress->Settings” menu. When plugins uses “manage_options” site owner should use URE Pro “Admin menu access” add-on or an alternative decision. If you use your own user capability, e.g. ‘job_man_manage_options’ it will simplifies the things. This way site owner will may manage access to this menu item directly via add/remove capability to the role.
You need to add your own custom capabilities automatically to the “Administrator” role during plugin activation of course.
VladimirKeymasterThanks for the information.
Currently license key is stored with all other URE’s options together at wp_options DB table.I will add an alternative option to define license key at wp-config.php to the next update.
VladimirKeymasterIs it possible to look on your site admin on-line? If ‘Yes’, send login credentials to support [at-sign] role-editor.com.
VladimirKeymasterYes, it is safe to delete free version at ‘user-role-editor’ folder after installing and activating of Pro version at ‘user-role-edito-pro’ folder, but only directly, via FTP. If you delete free version via WordPress you will lose the settings you made for URE. Both versions use the same storage for plugin settings.
VladimirKeymasterHi,
Do other buttons work? Check browser JavaScript console for the error messages. Show a screenshot with them if you find any.
VladimirKeymaster1) There is now way to manage this by custom post type ID. You should input the ID of the posts of those types which you wish to restrict access to. You may see the post ID at the browser address line when you open that post for the editing.
To restrict access to other post types use:
a) is post type uses its own capabilities set like ‘edit_events’, exclude ‘create_events’ capability from a user role;
b) if post type uses the same ‘edit_posts’ capability use ‘admin access blocking’ add-on: https://www.role-editor.com/block-admin-menu-items2) Currently only the list of posts, pages ID is supported. I think about to add automatic support for the child pages as it is not the 1st feature request. But it is not realized yet.
VladimirKeymasterThank you. I updated plugin metadata at the update server.
VladimirKeymasterCreate file wc-settings-remove-tab.php at the wp-content/mu-plugins folder and insert to it this code:
<?php add_filter( 'woocommerce_settings_tabs_array', 'remove_webhooks', 25); function remove_webhooks($pages) { if (current_user_can('wc_manager_restricted')) { unset($pages['webhooks']); } return $pages; }
Replace wc_manager_restricted with your role name or capability.
VladimirKeymasterAdd to the role or user these capabilities:
‘search_regex_read’ – it gives access to the “Tools->Search Regex” menu,
‘search_regex_write’ – it allows to modify WordPress data.VladimirKeymasterHi,
Thanks for the good feedback.
Post edit restrictions by categories was added to the development version 4.19.b. It is available at download page.
Post view restrictions by categories is under development currently.If WECRB plugin realized events as the custom post type veiw/edit restrictions by categories should work for events then.
It will be useful to get mentioned WECRB plugin for testing. If it’s applicable, send the installation package to support [at-sign] role-editor.com. It will be used for the testing purpose only at my local development environment.
VladimirKeymasterHi,
Yes, you really can send screenshots to support [at-sign] role-editor.com
What is a real problem? According to screenshots You allowed to edit the only page and that user have access to that only page, right?
If you don’t need that user may create new posts/pages revoke create_posts, create_pages capabilities from him.VladimirKeymasterI tried to repeat a described issue, but without success. Posts are shown at the post edit page with pages included to the gallery only as for editor, as for later assigned admin-copy role.
In case you will meet a similar issue again, let me access to the site to take a look in order to try to repeat it at my development environment. -
AuthorPosts