mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
models/org: reduce to 2 SQL executions for GetOrgIDsByUserID
This also addresses #4231. It is now ignoring nonexistent organizations returned from 'org_user' table. This was a bug caused in older version that didn't cleanup 'org_user' table when delete an organization.
This commit is contained in: