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