Skip to content

Comments

Closes #3207: Fix assign role email for collection sent twice#3208

Merged
madryk merged 3 commits intodevelopfrom
feature/assign_role_email_sent_twice
Feb 11, 2026
Merged

Closes #3207: Fix assign role email for collection sent twice#3208
madryk merged 3 commits intodevelopfrom
feature/assign_role_email_sent_twice

Conversation

@madryk
Copy link
Collaborator

@madryk madryk commented Feb 11, 2026

The problem occurred because of the mismatch in conditions used in PublishDataverseCommad and ManagePermissionsService.

I've changed the condition a little bit. The only reason why we should not send notification to user about assigned role is when the user do not have the ability to see the collection (url to collection is inside the email). That is when collection is unpublished and the user do not have a permission to view unpublished collection.

In such cases we postpone sending the notification until the collection is published.

@sniewczas sniewczas assigned madryk and unassigned sniewczas Feb 11, 2026
madryk and others added 2 commits February 11, 2026 12:01
Co-authored-by: Sylwester Niewczas <sniewcza@icm.edu.pl>
@madryk
Copy link
Collaborator Author

madryk commented Feb 11, 2026

I forgot to run the integration tests - and it turned out to not pass. So I've corrected it.

@madryk madryk assigned sniewczas and unassigned madryk Feb 11, 2026
@sniewczas sniewczas assigned madryk and unassigned sniewczas Feb 11, 2026
@madryk madryk merged commit 40a6226 into develop Feb 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants