Skip to content
Snippets Groups Projects
Commit bd9a7ccc authored by moon's avatar moon
Browse files

UpdateItems are only accessible by Maintainer and Contributor

parent f7908bfa
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@
</div>
</div>
<button class="btn btn-primary" @click="$router.push('/updateitem/new')">
<button v-if="userData !== null && (getRole === 'Contributor' || getRole === 'Maintainer')"
class="btn btn-primary" @click="$router.push('/updateitem/new')">
Create new Update Item
</button>
......@@ -66,8 +67,8 @@
</template>
</fetch-profile>
<h4 class="round">Update Items</h4>
<fetch-update-items v-if="userData !== null && getRole !== 'Authenticated'">
<fetch-update-items v-if="userData !== null && (getRole === 'Contributor' || getRole === 'Maintainer')">
<h4 class="round">Update Items</h4>
<template slot-scope="{response, loading}">
<slot :response="response" :loading="loading">
<div v-if="loading || response === null"></div>
......
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