Replies: 1 comment
-
I think what you've mentioned is probably the most efficient approach, as the count avoids looping through things multiple times. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
In my app a user can have multiple roles, but I need to check if a user have only a specific role
I guess something like this could work
but this just feels like overkill, are there a better way ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions