craft-campaign icon indicating copy to clipboard operation
craft-campaign copied to clipboard

Allow user groups without permission for the primary site to add contacts

Open steve-p96 opened this issue 2 months ago • 2 comments

Feature Request

In our multisite setup we have the situation that user groups of a specific multisite should be able to add contacts. Currently edit permission for the primary site is necessary to add contacts.

  • Is there a specific reason for that?
  • Is there any other way to give them the permission to add contacts without the edit permissions for the primary site?

Thanks :)

Plugin Version

3.6.0

steve-p96 avatar Oct 21 '25 15:10 steve-p96

This restriction was caused by an issue in Craft 4. It’s entirely possible that the issue no longer exists in Craft 5, but it would need some thorough testing.

If you’d like to see it working, you can comment out the following line. https://github.com/putyourlightson/craft-campaign/blob/d2db1d1f40e27db946d110830d908d893e4065e7/src/Campaign.php#L374

bencroker avatar Oct 23 '25 18:10 bencroker

This restriction was caused by an issue in Craft 4. It’s entirely possible that the issue no longer exists in Craft 5, but it would need some thorough testing.

If you’d like to see it working, you can comment out the following line.

craft-campaign/src/Campaign.php

Line 374 in d2db1d1 return false;

Removing the mentioned condition (which checks if the user has edit permissions for the default site in a multi-site setup) makes creating contacts work again (in Craft 5) for editors which don't have edit permissions for the default site.

Is there anything else we can do to help with the goal to have this released, @bencroker? Thanks!

thasmo avatar Nov 04 '25 08:11 thasmo

Great! I’ll do some more testing and will try to get it into the next release.

bencroker avatar Nov 19 '25 19:11 bencroker

@bencroker, appreciate it. When can we expect the next release? Thanks a lot!

thasmo avatar Nov 20 '25 15:11 thasmo

@bencroker - I also wanted to ask, if we can expect a release soonish? Thank you very much!

christophpaster avatar Dec 04 '25 13:12 christophpaster

Thanks for following up. We should have a release out next week with a fix.

bencroker avatar Dec 04 '25 15:12 bencroker