Created
August 18, 2021 17:08
-
-
Save kamaravichow/6b4e1d0743ed111c694f7b6b3bbb3db2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hasAnyRole(roles) { | |
return isLoggedIn() && get(/databases/$(database)/documents/users/$(request.auth.uid)).data.roles.hasAny(roles) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment