Skip to content

ZakariyaF/Travelmantics

Repository files navigation

Travelmantics

ALC 4 Phase 1 Challenge 2 Android application.

Note: In order for the project to build and run properly, please add your own google-services.json file to the app folder.

Firebase Database rules:

{
  "rules": {
    ".read": "auth != null",
    ".write": "root.child('administrators').hasChild(auth.uid)"
  }
}

Firebase Storage rules:

rules_version = '2';
function isAdmin(){
return request.auth.uid in{
"insert your admin uid here" : "insert your admin name here"
};
}

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read: if request.auth != null;
      allow write: if request.auth != null && isAdmin();
    }
  }
}

About

ALC 4 Phase 1 Challenge 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages