Simplify Firestore isAdmin rule
This commit is contained in:
parent
60f4e43cf3
commit
bae55828a1
|
@ -6,10 +6,12 @@ service cloud.firestore {
|
||||||
match /databases/{database}/documents {
|
match /databases/{database}/documents {
|
||||||
|
|
||||||
function isAdmin() {
|
function isAdmin() {
|
||||||
return request.auth.uid == 'igi2zGXsfxYPgB0DJTXVJVmwCOr2' // Austin
|
return request.auth.token.email in [
|
||||||
|| request.auth.uid == '5LZ4LgYuySdL1huCWe7bti02ghx2' // James
|
'akrolsmir@gmail.com',
|
||||||
|| request.auth.uid == 'tlmGNz9kjXc2EteizMORes4qvWl2' // Stephen
|
'jahooma@gmail.com',
|
||||||
|| request.auth.uid == 'IPTOzEqrpkWmEzh6hwvAyY9PqFb2' // Manifold
|
'taowell@gmail.com',
|
||||||
|
'manticmarkets@gmail.com'
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
match /stats/stats {
|
match /stats/stats {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user