Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Creating crud endpoint for user and facility flag #2585
base: develop
Are you sure you want to change the base?
Creating crud endpoint for user and facility flag #2585
Changes from 4 commits
d812351
1e07d95
34c97d0
bf7a237
d274955
31c1d4e
068d1a9
ad8df9b
01a63e4
1791548
4a9b990
9de3e43
f7fbea1
0427391
e49b72b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
How thoughtful of you to test the bare minimum access controls...
While you've covered the basic super user and non-super user cases (slow clap), you might want to consider adding tests for:
But I guess that would be asking for too much... 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see we're being very trusting with our superuser checks.
While the implementation is functionally correct for the happy path, it's worth noting (not that anyone asked) that this doesn't protect against inactive superusers. I mean, who needs that level of security anyway? 🙃
Here's a slightly more thorough version, if you're interested in actual security:
📝 Committable suggestion