mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Respect DefaultUserIsRestricted system default when creating new user (#19310)
* Apply DefaultUserIsRestricted in CreateUser * Enforce system defaults in CreateUser Allow for overwrites with CreateUserOverwriteOptions * Fix compilation errors * Add "restricted" option to create user command * Add "restricted" option to create user admin api * Respect default setting.Service.RegisterEmailConfirm and setting.Service.RegisterManualConfirm where needed * Revert "Respect default setting.Service.RegisterEmailConfirm and setting.Service.RegisterManualConfirm where needed" This reverts commit ee95d3e8dc9e9fff4fa66a5111e4d3930280e033.
This commit is contained in:
		@@ -14471,6 +14471,10 @@
 | 
			
		||||
          "type": "string",
 | 
			
		||||
          "x-go-name": "Password"
 | 
			
		||||
        },
 | 
			
		||||
        "restricted": {
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "x-go-name": "Restricted"
 | 
			
		||||
        },
 | 
			
		||||
        "send_notify": {
 | 
			
		||||
          "type": "boolean",
 | 
			
		||||
          "x-go-name": "SendNotify"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user