diff --git a/src/store/modules/app.js b/src/store/modules/app.js index e06953aaaac6fc423e1f9e6ab094deb87c6ab986..b585da5bf3f6fc9578e20f29139b77804fa0e324 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -51,6 +51,9 @@ const app = { commit('CLOSE_SIDEBAR', withoutAnimation) }, async NeedReboot({ commit, getters }) { + if (!getters.roles.includes('admin')) { + return + } const response = await needReboot(getters.authHost, getters.token) commit('TOGGLE_REBOOT', response.data['need_reboot']) },