Skip to content

Commit

Permalink
fix isowner
Browse files Browse the repository at this point in the history
  • Loading branch information
nsolov committed Mar 27, 2023
1 parent a59c3d4 commit d3daf65
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 d3daf65

Please sign in to comment.