]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only show app store link if user is admin
authorJulius Härtl <jus@bitgrid.net>
Wed, 19 Aug 2020 15:04:24 +0000 (17:04 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 19 Aug 2020 15:07:30 +0000 (17:07 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/dashboard/src/App.vue

index 7906daa5eaca3ac38794e3bbf6e7c38dccd28b79..fa9b481e54e6ca110b70632655ddcec29fb801a3 100644 (file)
@@ -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: {},