mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-19 20:25:21 +00:00
Fix: add some minor frontend permissions checks (#8524)
This commit is contained in:
1 parent
20b7ff9f9f
commit
2bcbed31e9
4 files changed
+21
-8
No files matched your search
@@ -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