@@ -454,7 +454,8 @@ namespace Hotline.Api.Controllers
[HttpGet("common-list")]
public async Task<IReadOnlyList<SystemCommonOpinion>> GetCommon([FromQuery]ECommonType commonType,bool isOpen)
{
- return await _commonOpinionRepository.Queryable().Where(x => x.CommonType == commonType && x.IsOpen == isOpen && x.CreatorId == _sessionContext.RequiredUserId).ToListAsync();
+ return await _commonOpinionRepository.Queryable().Where(x => x.CommonType == commonType && x.IsOpen == isOpen)
+ .WhereIF(isOpen== false,x=> x.CreatorId == _sessionContext.RequiredUserId).ToListAsync();
}
/// <summary>