diff --git a/src/App.vue b/src/App.vue index 9378a4c3cce068d64107fa69141f7ccbefee3e54..343ccfe54930b931fc6bc1111399d9ee6d749a6a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -111,7 +111,7 @@ {{ userFullname || user.username || "Utilisateur inconnu" }} </router-link> <div - v-if="user && user.is_administrator" + v-if="user || user.is_administrator" class="item ui label vertical no-hover" > <span v-if="USER_LEVEL_PROJECTS && project"> diff --git a/src/views/project/Project_detail.vue b/src/views/project/Project_detail.vue index b7fbff0231327a8f1606f9182f26e87add209dc2..5087954315d796ba8161c98966784ce467d44505 100644 --- a/src/views/project/Project_detail.vue +++ b/src/views/project/Project_detail.vue @@ -86,6 +86,7 @@ <div class="row"> <div class="seven wide column"> + <h3 class="ui header">Types de signalements</h3> <div class="ui middle aligned divided list"> <div v-for="(type, index) in feature_types" @@ -153,7 +154,9 @@ params: { slug_type_signal: type.slug }, }" v-if=" - project && permissions && permissions.can_create_feature + project && + permissions && + permissions.can_create_feature_type " class=" ui @@ -175,7 +178,12 @@ name: 'editer-type-signalement', params: { slug_type_signal: type.slug }, }" - v-if="project && type.is_editable" + v-if=" + project && + type.is_editable && + permissions && + permissions.can_create_feature_type + " class=" ui compact