mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 22:15:48 +08:00
Allow unlocking for all permissions
This commit is contained in:
parent
d647d97ea1
commit
7f798b02c1
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Add table
Reference in a new issue