caipin пре 4 година
родитељ
комит
45e76564d7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/tree_service.go

+ 1 - 1
services/tree_service.go

@@ -164,7 +164,7 @@ func (s *treeService) GetAllContract(projectId int, account *models.CmProjectAcc
 	for _, data := range datalist {
 
 		flag := true
-		if data.BidsectionId != 0 {
+		if data.BidsectionId != 0 && account.IsAdmin != 1 {
 			flag = false
 		}