Hello guys,
I am trying to: Restrict Editing of Posts that are not assigned to WP-User
I expected: That the signed in user should only be able to edit his own posts.
Instead: He can edit any post of the posttype.
I have a Userrole called "artist", that user should only be able to edit his own profile(which is a Posttype called artist as well.)
The Post with the Profile is assigned to the WP-User.
I also have established the access control for artists, and checked only delete own, edit own and read.
But the user can still edit every artist.
Anyone can help me out?
Hello,
In your screenshot
hidden link
There isn't user role "artist" as you mentioned above, is it the user role "Autor" in above screenshot?
If it is, I can not find any wrong setting in your screenshot, and the problem you mentioned above is abnormal, in case it is a compatibility problem, please check these:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks
Oh I'm sorry for the confusion, the role Artist is called "Künstler" in german.
Just for clarification, I have a WP-User, assigned to Künstler(which is a Posttype), Künstler is what the WP-User should be able to edit but only the one he is assigned to.
I tried your setting in my localhost, it works fine, I see below error message when edit post of other users:
Sorry, you are not allowed to edit this item.
in case it is a compatibility problem, please try as I mentioned above:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, I need to test and debug it in my localhost, thanks