Auth: Extend user accounts with custom scope setting

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-22 19:58:56 +02:00
parent c5312d6eda
commit 9514542d44
34 changed files with 562 additions and 78 deletions

View File

@@ -72,6 +72,12 @@ func (m *User) SetValuesFromCli(ctx *cli.Context) error {
privilegeLevelChange = true
}
// Authorization scope.
if ctx.IsSet("scope") {
m.UserScope = frm.Scope()
privilegeLevelChange = true
}
// Originals base folder.
if ctx.IsSet("base-path") {
m.SetBasePath(frm.BasePath)