mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Auth: Extend user accounts with custom scope setting
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user