Front-end publishing – setting the user as the file owner by default
-
-
Carla EspindolaParticipant# 1 year, 5 months ago
Hello!
I’m setting up the front-end publishing add-on, but I’m having the following problem.
If I set the role permissions to disallow the user to ‘Select the user’, when I try to publish I get that message that I’m not allowed to set user and to contact the administrator.
However, If I allow this, the user sees a list of all the users in the website, which we cannot allow as it would be a privacy violation. He should only be able to see himself in that drop-down list.
Is there any way to prevent the user from choosing the owner but still allowing him to upload files? Ideally, the user should be set as the owner by default, skipping the owner step in the publishing tool.
Any help would be greatly appreciated.
Best regards,
Carla
-
ThomasKeymaster# 1 year, 5 months ago
Hi,
If I set the role permissions to disallow the user to ‘Select the user’, when I try to publish I get that message that I’m not allowed to set user and to contact the administrator.
When you do not allow an user to select an owner, you should, in this case set a default owner, for each content type, in Settings > WP Customer Area > Private Files / Pages….. > Default owner.
However, If I allow this, the user sees a list of all the users in the website, which we cannot allow as it would be a privacy violation. He should only be able to see himself in that drop-down list.
The Owner Restrictions add-on allows you to define rules for each selection field. You can define that a subscriber can only select himself for the user field.
However, this is often more user-friendly to entirely hide the owner selection part for the subscriber, and set, for instance, the administrator as the default owner. The user will be author of the post : by default, authored posts are hidden. You could in that case uncheck the option to hide authored posts.
Ideally, the user should be set as the owner by default, skipping the owner step in the publishing tool.
Yes, as detailed above. I think that in your case, you don’t even need the Owner Restriction add-on, but just need to set a default owner to whom the posts should be shared, and unhide the authored posts.
Feel free to choose the solution that better suits your needs.
Best regards.
Want to help WP Customer Area? It only takes few seconds!
Rate & review the plugin on WordPress.org 🙂
-
The topic ‘Front-end publishing – setting the user as the file owner by default’ is closed to new replies.