mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-30 11:51:57 +00:00
invert logic
This commit is contained in:
@@ -263,5 +263,5 @@ checkAdminAllowedPkgs pkgId adminId = do
|
|||||||
if length pkg > 0
|
if length pkg > 0
|
||||||
then do
|
then do
|
||||||
res <- runDB $ getAllowedPkgs (PkgRecordKey pkgId) (AdminKey adminId)
|
res <- runDB $ getAllowedPkgs (PkgRecordKey pkgId) (AdminKey adminId)
|
||||||
pure $ if length res > 0 then (True, True) else (False, True)
|
pure $ if length res > 0 then (True, False) else (False, False)
|
||||||
else pure (True, False)
|
else pure (True, True)
|
||||||
Reference in New Issue
Block a user