Goldinteractive / craft-sitecopy

Other
2 stars 4 forks source link

Restrict use of plugin by user permissions #18

Open joshparylak opened 1 day ago

joshparylak commented 1 day ago

Is there any way to restrict the use of this plugin? I'd like some content editors to have access to it, but others (who are limited to one site) should not be able to copy content to other sites.

lukasNo1 commented 17 hours ago

We check if the user has permission to the site he wants to copy to. If he does not, he won't be able to copy the entry.

Based on your description, content editors with access to only one site should already be restricted from copying content to other sites.

joshparylak commented 13 hours ago

@lukasNo1 Ah, got it. That makes sense, and that's helpful. Does that affect the visibility of the copy option at all or does it appear regardless?

lukasNo1 commented 12 hours ago

If there is no site he can copy to at all, it will hide the whole widget in the sidebar.