Skip to content
Snippets Groups Projects
Commit f32702b9 authored by leandro's avatar leandro
Browse files

fix list roles

parent 93eb6f46
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,9 @@ export default {
'name': self.traslateRoleToFrench(item.user_type_id),
'value': item.user_type_id,
})
if (!self.form.moderation && item.user_type_id == "moderator"){
levels.pop()
}
});
return levels
}
......@@ -506,7 +509,14 @@ export default {
};
},
},
watch: {
'form.moderation': function (newValue){
if(newValue){
this.form.access_level_pub_feature = { name: "", value: "" };
this.form.access_level_arch_feature = { name: "", value: "" };
}
}
},
created() {
this.definePageType();
if (this.action === "create") {
......
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