Skip to content

Commit c9aa26a

Browse files
committed
fix: incorrect visibility of activities in front-office
1 parent f06e869 commit c9aa26a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

apps/front-office/src/app/application/application.component.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,15 @@ export class ApplicationComponent
247247
icon: 'mail',
248248
});
249249
}
250-
this.adminNavItems.push({
251-
name: this.translate.instant('common.activity.few'),
252-
path: './settings/activity-log',
253-
icon: 'timeline',
254-
});
250+
if (
251+
this.ability.can('read', subject('User', { application: application.id }))
252+
) {
253+
this.adminNavItems.push({
254+
name: this.translate.instant('common.activity.few'),
255+
path: './settings/activity-log',
256+
icon: 'timeline',
257+
});
258+
}
255259
}
256260

257261
override ngOnDestroy(): void {

0 commit comments

Comments
 (0)