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

app.js: Request NeedReboot only if admin

parent c79d15dc
Branches
No related tags found
1 merge request!324Forward-port: Handle moderation privileges
......@@ -57,6 +57,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.
Please register or to comment