wip, added popovers and dialogs for user options, made modal timeline a little bit less painful to look at
This commit is contained in:
parent
3a6dac7ce5
commit
c3e854c1f9
7 changed files with 233 additions and 70 deletions
|
|
@ -71,7 +71,7 @@ const adminSettingsStorage = {
|
|||
},
|
||||
adminRemoveUserFromAdminGroup (store, user) {
|
||||
// prevent revokation of own rights
|
||||
if (user.id !== store.state.users.currentUser.id) {
|
||||
if (user.id !== store.rootState.users.currentUser.id) {
|
||||
return store.rootState.api.backendInteractor.adminRemoveUserFromAdminGroup({ user })
|
||||
.then(res => store.commit('updateRight', { user, right: 'admin', value: res.is_admin }))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue