File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import BadgeAppLevel from '../BadgeAppLevel.vue'
1818import BadgeAppScore from ' ../BadgeAppScore.vue'
1919import { useLimitedGroups } from ' ../../composables/useLimitedGroups.ts'
2020import { useAppsStore } from ' ../../store/apps.ts'
21+ import { canLimitToGroups } from ' ../../utils/appStatus.ts'
2122
2223const { app } = defineProps <{ app: IAppstoreApp | IAppstoreExApp }>()
2324
@@ -98,6 +99,10 @@ const appCategories = computed(() => {
9899 .join (' , ' )
99100})
100101
102+ const cannotLimitToGroups = computed (() => {
103+ return app .active && ! canLimitToGroups (app )
104+ })
105+
101106/**
102107 * Get the author name from the XML node
103108 *
@@ -138,6 +143,10 @@ function authorName(xmlNode): string {
138143 </ul >
139144 </NcNoteCard >
140145
146+ <NcNoteCard v-if =" cannotLimitToGroups " type="info">
147+ {{ t('appstore', 'This app cannot be limited to groups because it provides functionality that is executed before group membership is determined.') }}
148+ </NcNoteCard >
149+
141150 <div v-if =" groupsAppIsLimitedTo.length" :class =" $style.appstoreDetailsTab__section" >
142151 <h4 :id =" idLimitedToGroups" >
143152 {{ t('appstore', 'Limited to groups') }}
You can’t perform that action at this time.
0 commit comments