Add app/menu support for "become / stop being root" feature
This commit is contained in:
parent
3240da9121
commit
817d8bef13
3 changed files with 73 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue