Skip to content
Snippets Groups Projects
Commit 70ccb9b2 authored by Haelwenn's avatar Haelwenn
Browse files

app.js: Request NeedReboot only if admin

parent 6ae8d6fc
No related branches found
No related tags found
3 merge requests!326Mergeback: 2.5.0,!315Handle moderation privileges,!282Release/2.5.0
Pipeline #43002 passed
......@@ -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'])
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment