Making AuthUser fields writable for admin while readonly by default #560
gaytomycode
started this conversation in
General
Replies: 1 comment
-
|
I even tried doing something like create_form = await AuthUser.form(fields={'readable': ['email', 'password'], 'writable': ['email']})but the email field is still read only. Sorry spamming you @gi0baro |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @gi0baro ,
I'm trying to make the AuthUser by default readable only, yet allow the admin to edit it. I tried to do that multiple ways and my last work around was to create a deep copy of the AuthUser and mark the fields as read and write
This affects the original AuthUser although it's a deep copy.
This is my AuthUser
Any idea what to do here? I tried going through the source code and tracing things to understand why that change would happen but I didn't find any clue.
Beta Was this translation helpful? Give feedback.
All reactions