Skip to content

Instantly share code, notes, and snippets.

View 707eric's full-sized avatar

Eric Brogdon 707eric

View GitHub Profile
/*
This example shows how you can use your data structure as a basis for
your Firebase security rules to implement role-based security. We store
each user by their Twitter uid, and use the following simplistic approach
for user roles:
0 - GUEST
10 - USER
20 - MODERATOR