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

users.js: call fetchSettings only if admin

parent 86989623
Branches
No related tags found
1 merge request!324Forward-port: Handle moderation privileges
......@@ -223,6 +223,10 @@ const users = {
dispatch('FetchTagPolicySetting')
},
async FetchTagPolicySetting({ commit, getters }) {
if (!getters.roles.includes('admin')) {
return
}
// XXX: Use nodeinfo?
const { data } = await fetchSettings(getters.authHost, getters.token)
const mrfSettings = data.configs.find(el => el.key === ':mrf')
? data.configs.find(el => el.key === ':mrf').value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment