mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 09:42:13 +08:00
Allow settting of default org id to auto-assign to (#12401)
Author: Mark Meyer <mark@ofosos.org>
This commit is contained in:

committed by
Torkel Ödegaard

parent
7ae844518c
commit
0f6e5e2953
@ -387,6 +387,7 @@ func insertTestDashboardForPlugin(title string, orgId int64, folderId int64, isF
|
||||
|
||||
func createUser(name string, role string, isAdmin bool) m.User {
|
||||
setting.AutoAssignOrg = true
|
||||
setting.AutoAssignOrgId = 1
|
||||
setting.AutoAssignOrgRole = role
|
||||
|
||||
currentUserCmd := m.CreateUserCommand{Login: name, Email: name + "@test.com", Name: "a " + name, IsAdmin: isAdmin}
|
||||
|
Reference in New Issue
Block a user