Home›Topic Tag: Controlling access to content editing
Topic Tag: Controlling access to content editing
Access plugin allows you to control access to content editing for different users. You can set access rules for entire user types or for specific users.
When you ask for help or report issues, make sure to tell us on which content and user types you are trying to apply access control.
Problem: I have created a Form to edit a post, and I would like to display the Edit Post Form link to only site admins and to the post author. Other site visitors should not see this link.
Solution: Use a combination of Access Control shortcodes and conditional HTML to handle the conditional display of this link.
[wpv-conditional if="( [wpv-post-author format='meta' meta='id'] eq [wpv-current-user format='meta' info='id'] )"]
Current User is post author. [toolset-edit-post-link layout_slug='program-edit-layout' target='self']Edit %%POST_TITLE%%[/toolset-edit-post-link]
[/wpv-conditional]
[toolset_access role="Administrator" operator="allow"]
[wpv-conditional if="( [wpv-post-author format='meta' meta='id'] ne [wpv-current-user format='meta' info='id'] )"]
Current User is admin but not author: [toolset-edit-post-link layout_slug='program-edit-layout' target='self']Edit %%POST_TITLE%%[/toolset-edit-post-link]
[/wpv-conditional]
[/toolset_access]
Problem: I would like to allow guests to publish posts after verifying their email. Can I use Toolset to send an automated notification containing a link that will automatically change their post status?
Solution: The only built-in way to change a post's status from the front-end of the site is to use a Form. It cannot be submitted via email, but you could send a link to that Form via email.