Forum Replies Created
-
AuthorPosts
-
01/02/2020 at 03:26 in reply to: You do not have sufficient permissions to access this admin page. #6602
Vladimir
KeymasterHi,
Yes, it’s possible to exclude selected custom post type from the URE edit restrictions, according to the article you mentioned.Show a code which you tried to add to your functions.php file. Re-check, that events CPT ID you use in the code is the same as Calendar of events plugin really uses.
Vladimir
KeymasterI retested. Capabilities list you granted is enough for changing order status.
I suppose that some plugin may change default permissions/behavior. Can you deactivate temporally all plugins except WooCommerce and re-test?Vladimir
KeymasterI tested similar task recently and wrote related article:
Re-check if you did not miss something.Vladimir
KeymasterIt’s not important.
Vladimir
KeymasterIn order to edit order details user should be capable edit products. Try to add capabilities from the “Products” group. I hope it will help.
30/01/2020 at 02:59 in reply to: You do not have sufficient permissions to access this admin page. #6585Vladimir
KeymasterYou can use functions.php file which belong to active theme.
Do you really have edit restrictions enabled and set for this user?
Vladimir
KeymasterHi,
Does vendor can:
1) see the list of orders?
2) open order for editing?Vladimir
KeymasterHi,
Yes, it’s possible. Go to “Settings->User Role Editor->Additional Modules” tab and turn ON the “Activate “Create” capability for posts/pages/custom post types” option.
Pay attention that you need to go through existing roles, like ‘Author’, ‘Editor’ and grant them (if needed) ‘create_posts’, ‘create_pages’ capability. The same is correct for ‘Shop Manager’ role, to which you will have to grant ‘create_orders’ capability.Vladimir
KeymasterHi,
The most probably ‘No’. If user has access to the list of items, he can to open selected item for editing. Generally WordPress and plugins use ‘edit_’ capability for access to the list of items, like ‘edit_posts’, ‘edit_products’. And we can not build read only access changing existing user permissions.
Vladimir
KeymasterUpdate:
If image was uploaded to Media Library and inserted into the post, its attachment record has that post ID as a post_parent.
But if user just select existing image from Media Library to insert to the post B, its parent post A stays the same, older one. URE can not select/count such image as attachment to the post B, which is allowed for editing by current user. URE looks at this Media Library item as attachment to the post A.Please open one of the child pages allowed for editing, click “Isert media”, upload new image and insert it into the page. Then open “Media Library” under restricted user. He should see, such image. But he will not see images uploaded by others for posts/pages, which he can not edit.
Vladimir
KeymasterHi,
Thanks for the report about this problem.
Right, Media Library should show to restricted user attachments for all pages which he can edit. While child pages are included into the list of editable items automatically with the parent page, related attachments are not included for some reason. I will investigate the issue and try to find a solution.
Vladimir
KeymasterHi @thebigbanik,
URE’s “Force custom post types to use their own capabilities’ works only for CPT, which has capability type ‘post’ – default for WordPress.
If you set other capability type for CPT you really should create capabilities list yourself, but look how WordPress does that for capability type ‘post’:
create_posts, edit_posts, delete_posts, publish_posts, edit_publish_posts, edit_others_posts.So you have to add not edit_blog, but edit_blogs, etc. Add ‘s’ to the end, if did not insert special multiple form at the CPU UI plugin.
Vladimir
KeymasterI do not have a solution to manage access to UI elements inside form editing page.
Vladimir
KeymasterMay be temporal networking problem or update server fault…
Vladimir
Keymaster -
AuthorPosts