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:
Unknwon
2017-03-03 18:26:51 -05:00
parent f7b7d008b6
commit ebd95dd082
4 changed files with 16 additions and 20 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.10.4.0302"
const APP_VER = "0.10.4.0303"
func init() {
setting.AppVer = APP_VER