Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions database.rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,13 @@
}
},

// I believe we have to allow everyone to read user profiles atm.
// This is problematic though, as it will disclose details people
// don't necessarily want disclosed, like their exact geo location
// or their full hosting history (which, if I have to press it for
// examples why you may want to hide it, may include celebrities).
//
// This permissive read rule also overrules the restrictive one on
// hosting requests above for now.
//
// Ideally, I (Reinier) believe we'll have separate nodes /Users
// (all information the platform has about a user) and /Profiles
// (all information other people are allowed to see about this user).
// And then platform users could manage to some extent how much of
// what's in their /Users appears in their /Profile too or not.
".read": true,
// only logged in users can read user data
// this should actually be restricted further: https://github.com/cycleplanet/cycle-planet/issues/31
".read": "auth !== null" ,
".write": "auth.uid === $userId",
".validate": true
},
".read": true,
".read": "auth !== null",
".write": false,
".validate": true
},
Expand Down
3 changes: 1 addition & 2 deletions src/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<q-space></q-space>

<q-tabs v-model="tab" shrink v-if="screenwidthbig">
<q-btn flat name="Map" label="Map" to="/map" />
<q-btn flat name="Map" label="Map" to="/map" v-if="loggedIn" />
<q-btn
v-if="teamMember"
flat
Expand Down Expand Up @@ -225,7 +225,6 @@
import { mapState, mapActions, mapGetters } from "vuex";
import mixinGeneral from "src/mixins/mixin-general.js";
import mixinHosting from "src/mixins/mixin-hosting.js";
import { LocalStorage, SessionStorage } from 'quasar';

export default {
mixins: [mixinGeneral, mixinHosting],
Expand Down
1 change: 1 addition & 0 deletions src/pages/Other/PageWelcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
icon="home"
:label="isWebApp ? 'home' : ''"
class="q-ma-xs justify-end"
v-if="loggedIn"
/>
<q-btn
flat
Expand Down