From a6397eb5ec0071e544fd470a0eb778d17d8bfb3e Mon Sep 17 00:00:00 2001 From: youichiro Date: Mon, 26 Jul 2021 19:14:03 +0900 Subject: [PATCH] fix setIsStaff --- frontend/.node-version | 1 + frontend/store/auth.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 frontend/.node-version diff --git a/frontend/.node-version b/frontend/.node-version new file mode 100644 index 00000000..656c9005 --- /dev/null +++ b/frontend/.node-version @@ -0,0 +1 @@ +15.12.0 diff --git a/frontend/store/auth.js b/frontend/store/auth.js index a28db643..7f3ab7fc 100644 --- a/frontend/store/auth.js +++ b/frontend/store/auth.js @@ -53,7 +53,7 @@ export const actions = { commit('setAuthenticated', true) commit('setUsername', user.username) commit('setUserId', user.id) - commit('setIsStaff', false) + commit('setIsStaff', user.isStaff) } catch { commit('setAuthenticated', false) commit('setIsStaff', false)