Skip to content

Commit

Permalink
removed description restrictions from org
Browse files Browse the repository at this point in the history
  • Loading branch information
Vayras committed Feb 7, 2024
1 parent e702c46 commit 81315d4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions handlers/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ func (oh *organizationHandler) CreateOrEditOrganization(w http.ResponseWriter, r
return
}

if len(org.Description) == 0 || len(org.Description) > 120 {
fmt.Printf("invalid organization name %s\n", org.Description)
w.WriteHeader(http.StatusBadRequest)
json.NewEncoder(w).Encode("Error: organization description must be present and should not exceed 120 character")
return
}

if pubKeyFromAuth != org.OwnerPubKey {
hasRole := db.UserHasAccess(pubKeyFromAuth, org.Uuid, db.EditOrg)
if !hasRole {
Expand Down

0 comments on commit 81315d4

Please sign in to comment.