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

Bypass field restrictions when saving entry #21

Open
goraxan opened this issue Aug 4, 2020 · 0 comments
Open

Bypass field restrictions when saving entry #21

goraxan opened this issue Aug 4, 2020 · 0 comments

Comments

@goraxan
Copy link

goraxan commented Aug 4, 2020

My use case is a user which creates user invitation entries, which have a randomly generated activation code (among other fields like email, firstname, lastname,...). This activation code should be hidden from the user, but it should be randomly generated and saved when creating the invitation.
Setting that field in the EVENT_BEFORE_SAVE has no effect since the creating user is not allowed to access that field.

I'm wondering if it's somehow possible to programmatically set restricted fields with a plugin/module when saving an entry.

Thanks

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

1 participant