Skip to content
Snippets Groups Projects
Commit 7ac087f8 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

display full menu for admin of project and superuser

parent 60d5886c
No related branches found
No related tags found
1 merge request!46display full menu for admin of project and superuser
......@@ -49,7 +49,10 @@
</router-link>
<router-link
v-if="project && user.is_administrator"
v-if="
project &&
(user.is_administrator || user.is_superuser || isAdmin)
"
:to="{
name: 'project_mapping',
params: { slug: project.slug },
......@@ -59,7 +62,10 @@
<i class="map icon"></i>Fonds cartographiques
</router-link>
<router-link
v-if="project && user.is_administrator"
v-if="
project &&
(user.is_administrator || user.is_superuser || isAdmin)
"
:to="{
name: 'project_members',
params: { slug: project.slug },
......@@ -169,6 +175,11 @@ export default {
return this.user.first_name + " " + this.user.last_name;
return null;
},
isAdmin: function () {
return (
this.USER_LEVEL_PROJECTS[this.project.slug] === "Administrateur projet"
);
},
},
methods: {
......
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