After updating gitea I was unable to create a repo in an organization as an owner. To fix this I had to run the following in mysql


update team set can_create_org_repo = 1 where lower_name = "owners" and can_create_org_repo = 0;

It should show at least one item was updating and now it will work as inteneded.