Skip to content

Commit

Permalink
Merge pull request #97 from intersystems-community/stage
Browse files Browse the repository at this point in the history
fix isowner
  • Loading branch information
nsolov authored Mar 27, 2023
2 parents 5a337ce + d3daf65 commit 09e917c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cls/ZPM/Owner.cls
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ClassMethod IsAuth() As %Status
ClassMethod IsOwner(packageName As %String, action As %String = "") As %Status
{
Set owner = ""
&sql(SELECT TOP 1 owner INTO :owner FROM ZPM.Package WHERE name = :packageName ORDER BY publishTS)
&sql(SELECT TOP 1 owner INTO :owner FROM ZPM.Package WHERE name = :packageName ORDER BY publishTS DESC)
If ( (owner'="") && (owner '= $Username) ){
Return $$$ERROR($$$GeneralError, "Invalid package owner")
}
Expand Down

0 comments on commit 09e917c

Please sign in to comment.