posted 2 years ago
Hello,
Is there a way for me to grant authority while creating a specific account? Now, depending on whether I have true / false (in my AppUser model is a class field boolean isProfessor;) or admin, the user gets the appropriate permissions in my implementation of UserDetailsService. It does not seem to me to be a correct and elegant solution. Can I add in the AppUser model something like "authoritiy" field and when creating set "who it will be"? STUDENT or PROFESSOR
Now it looks like:
Thank you for any advice!