Skip to content

Commit e911599

Browse files
committed
Initial RevokePublicPriveleges, GetNSList
1 parent d131f30 commit e911599

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

MDX2JSON/Installer.cls.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,5 +303,24 @@ Download list of files on https://raw.githubusercontent.com/ server.<br>
303303
Return st
304304
]]></Implementation>
305305
</Method>
306+
307+
<Method name="RevokePublicPriveleges">
308+
<ClassMethod>1</ClassMethod>
309+
<FormalSpec>NamespacesList:%String="*"</FormalSpec>
310+
<ReturnType>%Status</ReturnType>
311+
<Implementation><![CDATA[
312+
set st1=$SYSTEM.SQL.RevokeObjPriv("SELECT","*","TABLE","_PUBLIC",,,"_SYSTEM")
313+
set st2=$SYSTEM.SQL.RevokeObjPriv("SELECT","*","VIEW","_PUBLIC",,,"_SYSTEM")
314+
set st3=$SYSTEM.SQL.RevokeObjPriv("SELECT","*","CUBES","_PUBLIC",,,"_SYSTEM")
315+
set st4=$SYSTEM.SQL.RevokeObjPriv("SELECT","*","STORED PROCEDURES","_PUBLIC",,,"_SYSTEM")
316+
return $$$ADDSC(st1, $$$ADDSC(st2, $$$ADDSC(st3,st4)))
317+
]]></Implementation>
318+
</Method>
319+
320+
<Method name="GetNSList">
321+
<ClassMethod>1</ClassMethod>
322+
<Implementation><![CDATA[ do ##class(%CSP.Portal.Utils).%GetNamespaceList(.NspList)
323+
]]></Implementation>
324+
</Method>
306325
</Class>
307326
</Export>

0 commit comments

Comments
 (0)