diff --git a/README.md b/README.md index 9c47377b..a7f97b1e 100644 --- a/README.md +++ b/README.md @@ -81,9 +81,12 @@ service cloud.firestore { function isLoggedIn() { return exists(/databases/$(database)/documents/users/$(request.auth.uid)) } - match /users/{user} { - allow read, update, delete: if false; - allow create: if true; + // Make sure the uid of the requesting user matches name of the user + // document. The wildcard expression {userId} makes the userId variable + // available in rules. + match /users/{userId} { + allow read, update, delete: if request.auth != null && request.auth.uid == userId; + allow create: if request.auth != null; } match /auction-live/{items} { allow get, list: if true; diff --git a/css/auction-website.css b/css/auction-website.css index 90cd0e2f..55ba077e 100644 --- a/css/auction-website.css +++ b/css/auction-website.css @@ -13,7 +13,7 @@ html * { border: none; } -#info-modal-img { +.modal-body > img { width: 100%; } diff --git a/index.html b/index.html index db4722b0..40bb7684 100644 --- a/index.html +++ b/index.html @@ -13,12 +13,8 @@ - - - + + @@ -31,12 +27,12 @@ @@ -67,14 +63,13 @@
The username just lets us know who's bidding!
@@ -86,17 +81,16 @@