Skip to content

Commit 7fa1872

Browse files
committed
fix: privilege violation with getting modified production items
1 parent d04fa4e commit 7fa1872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cls/SourceControl/Git/Production.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ClassMethod GetModifiedItemsBeforeSave(internalName, Location, Output modifiedIt
216216
merge ^IRIS.Temp("sscProd",$job,"modifiedItems") = modifiedItems
217217
// FUTURE: use a percent variable or PPG instead
218218
kill ^IRIS.Temp("sscProd",$job,"items")
219-
set rs = ##class(%SQL.Statement).%ExecDirect(
219+
set rs = ##class(%SQL.Statement).%ExecDirectNoPriv(
220220
,"select Name, ClassName from Ens_Config.Item where Production = ?"
221221
, productionName)
222222
$$$ThrowSQLIfError(rs.%SQLCODE, rs.%Message)
@@ -231,7 +231,7 @@ ClassMethod GetModifiedItemsAfterSave(internalName, Output modifiedItems)
231231
set productionName = $piece(internalName,".",1,*-1)
232232
if ..IsEnsPortal() {
233233
// If adding/deleting from SMP, get the modified items by comparing items in temp global with items now
234-
set rs = ##class(%SQL.Statement).%ExecDirect(
234+
set rs = ##class(%SQL.Statement).%ExecDirectNoPriv(
235235
,"select Name, ClassName from Ens_Config.Item where Production = ?"
236236
, productionName)
237237
$$$ThrowSQLIfError(rs.%SQLCODE, rs.%Message)

0 commit comments

Comments
 (0)