mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Fix: add some minor frontend permissions checks (#8524)
This commit is contained in:
parent
20b7ff9f9f
commit
2bcbed31e9
4 changed files with 21 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue