Created
December 19, 2018 18:35
-
-
Save darrenmothersele/235ae503a81ef5c8c2f14282ad40385f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| service firebase.storage { | |
| match /b/{bucket}/o { | |
| match /{userId}/{document=**} { | |
| allow read: if request.auth.uid == userId; | |
| allow write: if request.auth.uid == userId | |
| && request.auth.token.path == request.resource.name | |
| && request.auth.token.remaining >= request.resource.size; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment