Closed alaksej closed 5 years ago
https://firebase.google.com/docs/auth/admin/custom-claims#defining_roles_via_backend_script
service firebase.storage { match /b/{bucket}/o { match /files/{authGroupName}/{fileName} { allow read: if request.auth.token.admin == true } } }
added via the cloud functions
https://firebase.google.com/docs/auth/admin/custom-claims#defining_roles_via_backend_script