mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	Revert "svc: Disallow creating services accounts by root (#12062)"
This reverts commit 150f3677d652bf0468211463d076246d997d9629. Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
		
							parent
							
								
									4a41222310
								
							
						
					
					
						commit
						38a9f87a56
					
				| @ -490,12 +490,6 @@ func (a adminAPIHandlers) AddServiceAccount(w http.ResponseWriter, r *http.Reque | ||||
| 	} | ||||
| 
 | ||||
| 	// Disallow creating service accounts by root user. | ||||
| 	if owner { | ||||
| 		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminAccountNotEligible), r.URL) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	// Disallow creating service accounts for root user. | ||||
| 	if createReq.TargetUser == globalActiveCred.AccessKey { | ||||
| 		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminAccountNotEligible), r.URL) | ||||
| 		return | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user