1.优化获取已建报表时只有报表的创建者可以看到,修改成配置了相关权限的用户可以看到
This commit is contained in:
parent
5450ed6b4a
commit
1b0957a512
@ -90,8 +90,12 @@ async def read_report(
|
||||
dashboard = await crud.dashboard.get(db, id=data_in.dashboard_id)
|
||||
# projection = {'query': False}
|
||||
projection = None
|
||||
#获取已建报表 属于自己的
|
||||
# reports = await crud.report.read_report(db, project_id=data_in.project_id,
|
||||
# projection=projection, **ext_where)
|
||||
#有权限的都能获取到
|
||||
reports = await crud.report.read_report(db, project_id=data_in.project_id,
|
||||
projection=projection, **ext_where)
|
||||
projection=projection)
|
||||
|
||||
for item in reports:
|
||||
item['added'] = False
|
||||
|
Loading…
Reference in New Issue
Block a user