Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resend email to users without the Access All Webform Results permission. #178

Open
pnmgman2 opened this issue Feb 14, 2021 · 6 comments

Comments

@pnmgman2
Copy link

Webform will not send email to users who have the Access Own Results permission set without also having the Access All Results permission set.

This is not ideal, as I want users to only have access to their submissions and still be able to email as a 'ball-in-court' method for notifying others via an email they add to a webform component field.

Adding the Access All Results exposes the Results tab on the webform which shows users all forms submitted by all users, which for us is a privacy issue. I have never been able to find a way around this issue going back to Drupal days.

@pnmgman2
Copy link
Author

Additional info - in my use case, the Results tab only appears when a new form is being created or in draft. It does not appear when already submitted forms are being viewed and/or edited.

@olafgrabienski
Copy link
Member

@pnmgman2 Thanks for reporting the webform email issue! I was curious and tried to reproduce it but wasn't able to do so: Sending a webform email to the email address of an user with the mentioned permission combination was possible.

I'm wondering if the Access Own Results / Access All Results permissions are meant to change Webform's ability to send mails to certain addresses. If I recall correct, these permissions are only relevant for the "Results" tab in the web interface.

@pnmgman2
Copy link
Author

pnmgman2 commented Feb 15, 2021 via email

@olafgrabienski
Copy link
Member

Hi again, I've just realized I didn't come back to this. I'm not maintaining Webform, so I can't give an official answer, and unfortunately, I don't know how to solve your use case either.

Idea for a workaround, if the information isn't top secret: hide the "Results" tab via CSS

@pnmgman2
Copy link
Author

pnmgman2 commented Mar 11, 2021 via email

@jenlampton jenlampton changed the title Webform cannot send email to users without the Access All Webform Results permission. Cannot resend email to users without the Access All Webform Results permission. Jun 6, 2022
@jenlampton
Copy link
Member

I suspect that the menu callback for that resend URL is not using the same access callback as the results page, where the Access Own Results permission is also checked. Hopefully this is a quick fix!

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

No branches or pull requests

3 participants