From 7817288463a584bbbefe1ce5299ee1a018cdc34d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 15 Mar 2021 20:59:01 +0000 Subject: [PATCH] --- server/AyaNova/biz/ReportBiz.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/AyaNova/biz/ReportBiz.cs b/server/AyaNova/biz/ReportBiz.cs index c80babbb..1e4d7116 100644 --- a/server/AyaNova/biz/ReportBiz.cs +++ b/server/AyaNova/biz/ReportBiz.cs @@ -382,6 +382,12 @@ namespace AyaNova.Biz return null; } + //If we get here via the /viewreport url in the client then there is no object type set so we need to set it here from the report + if(reportRequest.ObjectType==AyaType.NoType){ + reportRequest.ObjectType=report.ObjectType; + } + + AuthorizationRoles effectiveRoles = CurrentUserRoles;