Explorar el Código

rm user role check

abhishek9686 hace 1 año
padre
commit
3352fc9714
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  1. 0 3
      controllers/user.go

+ 0 - 3
controllers/user.go

@@ -407,9 +407,6 @@ func createUser(w http.ResponseWriter, r *http.Request) {
 		logic.ReturnErrorResponse(w, r, logic.FormatError(err, "badrequest"))
 		return
 	}
-	if !servercfg.IsPro {
-		user.PlatformRoleID = models.AdminRole
-	}
 
 	if user.PlatformRoleID == "" {
 		logic.ReturnErrorResponse(w, r, logic.FormatError(errors.New("platform role is missing"), "badrequest"))