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

Permission denied error when adding EmailRecipient #46

Open
mxmclaudel opened this issue Nov 19, 2019 · 0 comments
Open

Permission denied error when adding EmailRecipient #46

mxmclaudel opened this issue Nov 19, 2019 · 0 comments
Labels

Comments

@mxmclaudel
Copy link

When a user who is NOT an administrator attempts to add a new email recipient, they get a Forbidden message. It works fine when a user has the administrator role.
The error is on EmailRecipient->getFormParent(), the $formID retrieved from the session is a Page but is expecting to have a UserDefinedForm.
This does not cause problem for a user defined form page, just for a page, with a userform element.

The full error is:

ERROR [UNKNOWN TYPE, ERRNO 403]:
IN GET /admin/pages/edit/EditForm/1135/field/ElementalArea/item/2332/ItemEditForm/field/EmailRecipients/item/new
Line in

Trace
SilverStripe\Dev\CliDebugView->renderTrace()
DetailedErrorFormatter.php:119

SilverStripe\Logging\DetailedErrorFormatter->output(403, , , , )
DetailedErrorFormatter.php:54

SilverStripe\Logging\DetailedErrorFormatter->format(Array)
HTTPResponse.php:416

SilverStripe\Control\HTTPResponse->outputBody()
HTTPResponse.php:344

SilverStripe\Control\HTTPResponse->output()
index.php:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants