Browse Source

fix setIsStaff

pull/1453/head
youichiro 3 years ago
parent
commit
a6397eb5ec
2 changed files with 2 additions and 1 deletions
  1. 1
      frontend/.node-version
  2. 2
      frontend/store/auth.js

1
frontend/.node-version

@ -0,0 +1 @@
15.12.0

2
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)

Loading…
Cancel
Save