Created
May 20, 2020 20:29
-
-
Save IchordeDionysos/f86739f5e67f21d97d1ab40d589bcb55 to your computer and use it in GitHub Desktop.
Include function file improved Medium Article
This file contains 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 isAdmin(request) { | |
return request.auth.token.admin == true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment