-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
How to create readonly users? #104
Comments
What I did is the following: Added this to ValidateUserAsync And then added Custom Command Handler with this at the start:
|
Sorry, I don't mean how to authorize a user, but how to setup witch commands that user could call. |
That is exactly what I explained. Add specific role and check for it in a custom Controller ( i.e. CustomSTORController for disallowing write permission ). |
Sorry, I don't get it, I should be able to do this from |
Same issue |
You can override the commands you want to control by creating and registering your own. Your commands take precedence. In my case, i'm checking roles to create folders:
|
How could I make a user be read-only on the filesystem?
Working on aspnetcore 3.1
I have te code from the example:
thanks
The text was updated successfully, but these errors were encountered: