mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
Fix: add some minor frontend permissions checks (#8524)
This commit is contained in:
@@ -646,7 +646,13 @@ export class SettingsService {
|
||||
|
||||
completeTour() {
|
||||
const tourCompleted = this.get(SETTINGS_KEYS.TOUR_COMPLETE)
|
||||
if (!tourCompleted) {
|
||||
if (
|
||||
!tourCompleted &&
|
||||
this.permissionsService.currentUserCan(
|
||||
PermissionAction.Change,
|
||||
PermissionType.UISettings
|
||||
)
|
||||
) {
|
||||
this.set(SETTINGS_KEYS.TOUR_COMPLETE, true)
|
||||
this.storeSettings()
|
||||
.pipe(first())
|
||||
|
Reference in New Issue
Block a user