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