Allow unlocking for all permissions

This commit is contained in:
deajan 2025-01-30 16:14:22 +01:00
parent d647d97ea1
commit 7f798b02c1
2 changed files with 3 additions and 3 deletions

View file

@ -245,7 +245,7 @@ In that case, you can set permissions via the GUI or directly in the configurati
Permissions are:
- full: Set by default, allows all including destructive operations
- restore: Allows everything backup does plus restore, check and dump operations
- backup: Allows, backup and snapshot/object listing operations
- backup: Allows, backup, snapshot/object listing operations and repo unlocking
## Logs

View file

@ -518,7 +518,7 @@ class NPBackupRunner:
Decorator that checks permissions before running functions
Possible permissions are:
- backup: Init, Backup and list backups
- backup: Init, Backup, list backups and unlock
- restore: Init, Backup, restore, recover and list snapshots
- full: Full permissions
@ -541,7 +541,7 @@ class NPBackupRunner:
"check": ["restore", "full"],
"recover": ["restore", "full"],
"list": ["full"],
"unlock": ["full"],
"unlock": ["full", "restore", "backup"],
"repair": ["full"],
"forget": ["full"],
"housekeeping": ["full"],