mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 03:00:18 +08:00
feat: add Organization.HasPrivilegeConsent to block add-user API for the "built-in" org (#3864)
This commit is contained in:
@ -154,7 +154,7 @@ func initBuiltInUser() {
|
||||
CreatedIp: "127.0.0.1",
|
||||
Properties: make(map[string]string),
|
||||
}
|
||||
_, err = AddUser(user)
|
||||
_, err = AddUser(user, "en")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user