Add app/menu support for "become / stop being root" feature

This commit is contained in:
Lance Edgar 2019-11-26 16:43:35 -06:00
parent 3240da9121
commit 817d8bef13
3 changed files with 73 additions and 2 deletions

View file

@ -35,6 +35,7 @@ export default {
// let all of app know who the user is(n't)
this.$store.commit('SET_USER', response.data.user)
this.$store.commit('SET_USER_IS_ROOT', response.data.user.is_root)
// also keep track of user's permissions
this.$store.commit('SET_PERMISSIONS', response.data.permissions)