putyourlightson / craft-campaign

Send and manage email campaigns, contacts and mailing lists in Craft CMS.
https://putyourlightson.com/plugins/campaign
Other
63 stars 25 forks source link

Add contact with the "New Contact" is not authorized #378

Closed scandella closed 1 year ago

scandella commented 1 year ago

Hi, Using Craft-Campaign 2.6.0 in Craft Pro 4.4.7, I have given all the authorizations to a group of users, although the users are not authorized to add a contact via the "New Contact" button. It triggers a "User not authorized to edit this element."

Thanks for your help.

CleanShot 2023-04-14 at 20 44 30@2x
bencroker commented 1 year ago

Do users have edit permission for the primary site?

Screenshot 2023-04-14 at 15 14 56
scandella commented 1 year ago

Ben, This is not a Craft multiple-site system. There is only one site in this system. So I don't see the option you have highlighted. The option I have looks like the one in the attached screenshot.

CleanShot 2023-04-14 at 20 44 30@2x

bencroker commented 1 year ago

You don’t see it because the French translation has not yet been added. Can you please double check that users have permission to edit the site?

Screenshot 2023-04-14 at 18 07 14
bencroker commented 1 year ago

Any update on this, @scandella?

mathieuser commented 1 year ago

Hi Ben,

Just chiming in here as I have the same problem.

It seems if you only have one site, you cannot give these edit permissions, and so it seems my user should be admin to be able to add contacts, and that's not ideal as I don't want them to have this access.

scandella commented 1 year ago

Hi Ben, Sorry for the delay, I was away from my computer for a while. Same as @mathieuser , this is a one-site Craft system, so there is no checkmark for the user to edit the site as you mentioned in your previous answer. Although, the users can edit every part of the site that I give them access to, except for the contact in the campaign plugin.

bencroker commented 1 year ago

Ok I’ve found and fixed the issue in https://github.com/putyourlightson/craft-campaign/commit/8ff218a4fe7738ce3bdedd9f018d98350fc181bd and released in version 2.6.2.