Skip to content

Instantly share code, notes, and snippets.

@Satys
Created February 15, 2021 12:42
Show Gist options
  • Save Satys/f471110ee1b0778eb9df57a1084121c5 to your computer and use it in GitHub Desktop.
Save Satys/f471110ee1b0778eb9df57a1084121c5 to your computer and use it in GitHub Desktop.
for (i=0 -> permissions_to_be_checked.length) {
if (permissions_to_be_checked[i] in allowed_permissions) {
return {
status: true,
message: "Authorized"
}
}
}
return {
status: false,
message: "Unauthorized"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment