summaryrefslogtreecommitdiffstats
path: root/apps/dashboard/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-19 17:04:24 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-19 17:07:30 +0200
commite2f71fd3221c8df048440cc10e67c1b4ab036990 (patch)
tree035ef440e401849feb619f5802c0d06e5397affa /apps/dashboard/src
parent1c3e95670d06bfefcf2d66b32c4a9be0fa4b4404 (diff)
downloadnextcloud-server-e2f71fd3221c8df048440cc10e67c1b4ab036990.tar.gz
nextcloud-server-e2f71fd3221c8df048440cc10e67c1b4ab036990.zip
Only show app store link if user is admin
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r--apps/dashboard/src/App.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue
index 7906daa5eac..fa9b481e54e 100644
--- a/apps/dashboard/src/App.vue
+++ b/apps/dashboard/src/App.vue
@@ -55,7 +55,7 @@
</li>
</Draggable>
- <a :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the app store') }}</a>
+ <a v-if="isAdmin" :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the app store') }}</a>
<h3>{{ t('dashboard', 'Change background image') }}</h3>
<BackgroundSettings :background="background" @updateBackground="updateBackground" />
@@ -95,6 +95,7 @@ export default {
],
data() {
return {
+ isAdmin: getCurrentUser().isAdmin,
timer: new Date(),
registeredStatus: [],
callbacks: {},