Skip to content

Commit e920f80

Browse files
committed
Added resource check
1 parent 7b27c38 commit e920f80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

MDX2JSON/Utils.cls.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ Using dashboard name get JSON representation (array of ("type","title","mdx")) o
190190
set st = ##class(MDX2JSON.Dashboard).OpenDashboardByName(pDashName, .dash)
191191
return:($$$ISERR(st)) st
192192
193+
set canaaccess = dash.%CheckResource()
194+
return:canaaccess=0 $$$ERROR($$$GeneralError,"Access denied to " _ pDashName)
195+
193196
set st = ##class(MDX2JSON.Dashboard).WidgetsToProxyObject(dash, .widgetlist)
194197
return:($$$ISERR(st)) st
195198

0 commit comments

Comments
 (0)