diff --git a/src/store/actions.js b/src/store/actions.js index 4041be33..0f93166e 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -136,9 +136,9 @@ export default { .then((doc) => { const board = doc.data(); - if (state.user.uid !== board.owner) { - return reject(); - } + // if (state.user.uid !== board.owner) { + // return reject(); + // } commit('SET_ACTIVE_BOARD', { ...board, @@ -150,27 +150,6 @@ export default { }); }, - LOAD_PUBIC_BOARD({ commit }, id) { - return new Promise((resolve, reject) => { - const db = firestore(); - - db.collection('boards') - .doc(id) - .get() - .then((doc) => { - const board = doc.data(); - - commit('SET_ACTIVE_BOARD', { - ...board, - id: doc.id, - }); - - return resolve(); - }) - .catch(reject); - }); - }, - LOAD_PUBLIC_BOARDS({ commit }) { return new Promise((resolve, reject) => { const db = firestore();