Fix: add some minor frontend permissions checks (#8524)

This commit is contained in:
shamoon
2024-12-19 08:08:46 -08:00
committed by GitHub
parent 20b7ff9f9f
commit 2bcbed31e9
4 changed files with 21 additions and 8 deletions

View File

@@ -81,7 +81,14 @@ export class AppFrameComponent
if (this.settingsService.get(SETTINGS_KEYS.UPDATE_CHECKING_ENABLED)) {
this.checkForUpdates()
}
this.tasksService.reload()
if (
this.permissionsService.currentUserCan(
PermissionAction.View,
PermissionType.PaperlessTask
)
) {
this.tasksService.reload()
}
this.djangoMessagesService.get().forEach((message) => {
switch (message.level) {