diff --git a/src/views/project/Project_edit.vue b/src/views/project/Project_edit.vue index 411d78cc48f9f579ce99d9e8c3d42802a23a7bb2..90406b3e34157dcd5aa57f4eff109eec1504a81d 100644 --- a/src/views/project/Project_edit.vue +++ b/src/views/project/Project_edit.vue @@ -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") {