@@ -63,7 +63,7 @@ todo add optional parameter WEBAPP to Alter web app name if it needs to have ano
6363<RunInstall Class="MDX2JSON.Installer" Method="GrantSelectToUserInstaller"/>
6464<Log Text="User modifyed/created and granted SELECT access to all tables in ${Namespace}" Level="0"/>
6565<RunInstall Class="MDX2JSON.Installer" Method="GrantExecuteToUserInstaller"/>
66- <Log Text="User modifyed/created and granted EXECUTE access to all procedures in ${Namespace}" Level="0"/>
66+ <Log Text="User modifyed/created and granted EXECUTE access to all procedures of MDX2JSON package in ${Namespace}" Level="0"/>
6767</IfDef>
6868<IfNotDef Var="Password">
6969<Log Text="You specified username but not a password" Level="0"/>
@@ -430,7 +430,7 @@ Grant select access to User to all tables in comma-separated list of namespaces<
430430
431431<Method name =" GrantExecuteToUser" >
432432<Description >
433- Grant select access to User to all tables in comma-separated list of namespaces</Description >
433+ Grant EXECUTE access to User to all procedures of MDX2JSON package in comma-separated list of namespaces</Description >
434434<ClassMethod >1</ClassMethod >
435435<FormalSpec >User:%String,NamespacesList:%String="*"</FormalSpec >
436436<ReturnType >%Status</ReturnType >
@@ -440,11 +440,7 @@ Grant select access to User to all tables in comma-separated list of namespaces<
440440 set st = $$$OK
441441 for i=1:1:$l(NamespacesList,",") {
442442 zn $p(NamespacesList,",",i)
443- /*set st1 = $SYSTEM.SQL.GrantObjPriv("EXECUTE","MDX2JSON.ResolveText","STORED PROCEDURES",User)
444- set st2 = $SYSTEM.SQL.GrantObjPriv("EXECUTE","MDX2JSON.IsItemVisible","STORED PROCEDURES",User)
445- set st3 = $SYSTEM.SQL.GrantObjPriv("EXECUTE","MDX2JSON.GetDashCover","STORED PROCEDURES",User)
446- set st = $$$ADDSC(st1,$$$ADDSC(st2,st3))*/
447- set sql = "GRANT EXECUTE ON MDX2JSON.ResolveText,MDX2JSON.IsItemVisible,MDX2JSON.GetDashCover to " _ User
443+ set sql = "GRANT EXECUTE ON MDX2JSON.ResolveText,MDX2JSON.IsItemVisible,MDX2JSON.GetDashCover TO " _ User
448444 set statement = ##class(%SQL.Statement).%New()
449445 set st = statement.%Prepare(sql)
450446 return:$$$ISERR(st) st
0 commit comments