|
@@ -946,8 +946,12 @@ func (c *GobalConfigApiController) GetPrintInfo() {
|
946
|
946
|
|
947
|
947
|
func (c *GobalConfigApiController) GetOrgs() {
|
948
|
948
|
adminUserInfo := c.GetAdminUserInfo()
|
|
949
|
+
|
|
950
|
+ var id = adminUserInfo.AdminUser.Id
|
|
951
|
+ orgId := adminUserInfo.CurrentOrgId
|
949
|
952
|
var orgs []*models.Org
|
950
|
953
|
adminUser, err := service.GetHomeData(adminUserInfo.AdminUser.Id)
|
|
954
|
+ creator, err := service.GetCreator(id, orgId)
|
951
|
955
|
if err != nil {
|
952
|
956
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
953
|
957
|
return
|
|
@@ -963,7 +967,9 @@ func (c *GobalConfigApiController) GetOrgs() {
|
963
|
967
|
orgs = RemoveRepeatedOrgElement(orgs)
|
964
|
968
|
|
965
|
969
|
c.ServeSuccessJSON(map[string]interface{}{
|
966
|
|
- "orgs": orgs,
|
|
970
|
+ "orgs": orgs,
|
|
971
|
+ "adminUser": adminUser,
|
|
972
|
+ "creator": creator,
|
967
|
973
|
})
|
968
|
974
|
|
969
|
975
|
}
|