fix: restrict default permissions for proxy-auth auto-provisioned users (#5890)

Co-authored-by: Henrique Dias <mail@hacdias.com>
This commit is contained in:
kodareef5andHenrique Dias authored and GitHub committed 2026-04-04 22:02:34 +02:00
1 parent 1e03feadb5
commit f13c7c8cff
2 files changed
+82

No files matched your search

+3
View File
@@ -46,6 +46,9 @@ func (a ProxyAuth) createUser(usr users.Store, setting *settings.Settings, srv *
LockPassword: true,
}
setting.Defaults.Apply(user)
user.Perm.Admin = false
user.Perm.Execute = false
user.Commands = []string{}
var userHome string
userHome, err = setting.MakeUserDir(user.Username, user.Scope, srv.Root)