Skip Navigation

[Resolved] "Edit Own" not working as expected

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1109598

I want a user to have no admin access to anything other than editing a single custom post type (CPT) post, Dashboard, and Profile.

I don't want them to have the "Media" menu item.
I don't want them to be able to even see others' CPT posts or even how many exist.
I don't want them to be able to delete or create new CPT posts.

I created a new user, set them to Author, created the post as them. Then I created a new role (copied from Subscriber) and assigned them to that role.
I gave this role permission to "Edit Own" of my CPT.
When clicking the admin menu item for this CPT, they're taken to the "Mine" listing, but they can see All and Published counts. These listings are also visible.
However, the CPT post they're an author of does not have "Edit" link anywhere, and manually going to /wp-admin/post.php?post=1234&action=edit in the browser shows, "Sorry, you are not allowed to edit this item."

Please advise.

#1110250

Hello,

The problem is abnormal:

However, the CPT post they're an author of does not have "Edit" link anywhere, and manually going to /wp-admin/post.php?post=1234&action=edit in the browser shows, "Sorry, you are not allowed to edit this item."

Please check these:
1) Make sure you are using the latest version of Types + Access plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and problem user role/username, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1112099

Thanks for the details, I am downloading the file, will update here if there is anything found

#1112110

Here are what I found, the post "Demo" is a published post, but the user role "Company Admin" does not have the permission to publish the "Closing Cost Calcs" posts, it conduct the problem you mentioned above:
"Sorry, you are not allowed to edit this item."

In your case, you can try this:
Dashboard-> Toolset-> Access Control-> Post Types
in post type "Closing Cost Calcs", enable option "Publish" for user role "Company Admin", and test again

#1113090

When I checked "Publish", it notified me "Since you enabled 'Publish', 'Delete own' has also been enabled." -- and I cannot deselect only Delete.

I want them to be able to Edit Own, not Add New, not Delete.
At the "All posts" admin view, I do not want them to see how many posts are "All" or "Published" or "Trashed" -- only the "Mine" tab

#1114106

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Luo is has a day off today. He will get in touch with you tomorrow.

#1114865

Q1) and I cannot deselect only Delete.
This is expected result, when you deselect the option "Delete own", you should be able to see the meesage:
Since you disabled 'Delete own', 'Publish' has also been disabled.

Q2) I want them to be able to Edit Own, not Add New, not Delete.
As I mentioned above:
https://toolset.com/forums/topic/edit-own-not-working-as-expected/#post-1112110
the post "Demo" is a published post, in order to edit such post, you will need to grant user the "Publish" permission.
As a workaround you can change the post "Demo" as "Draft", then users will be able to edit it even without "Publish" permission

Q3) At the "All posts" admin view, I do not want them to see how many posts are "All" or "Published" or "Trashed" -- only the "Mine" tab
As you can see, there isn't such kind of feature within Access plugin, as a workaround, you can try it in wordpress front-end, for example create a view list posts of current users, and display Toolset forms to edit those post, more help:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

#1114973

Okay, thanks for confirming the limitations. Feature request for more granular abilities please.

#1115442

I assume you are going to mark these as feature requests:
Dashboard-> Toolset-> Access Control-> Post Types
in post type "Closing Cost Calcs", enable option "Publish" for user role "Company Admin", and deselect the option "Delete own"

Can you confirm it? thanks

#1115444

Yes, but I think I'm also looking for something even more granular, like User Role Editor's customizing specific capabilities.

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/split-edit-own-not-working-as-expected/

#1115473

As your request, I have changed this thread topic to "Request", and assign it to correspond supporter

#1115499

The new feature request ticket has been created for you, please check it here:
https://toolset.com/forums/topic/split-edit-own-not-working-as-expected/