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

@@ -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())