From 26086795e8d45830dd3a3a577f9375951cf22468 Mon Sep 17 00:00:00 2001 From: Stanley Jones Date: Fri, 6 Mar 2020 13:58:08 -0800 Subject: [PATCH] Fix: Works with dfx@0.5.2 --- src/profile/database.mo | 2 +- src/profile/utils.mo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/profile/database.mo b/src/profile/database.mo index a4baf88..5279150 100644 --- a/src/profile/database.mo +++ b/src/profile/database.mo @@ -274,6 +274,6 @@ module { func init() : HashMap.HashMap { func passthrough(hash : PrincipalId) : PrincipalId { hash }; - HashMap.HashMap(1, Hash.Hash.hashEq, passthrough) + HashMap.HashMap(1, Hash.hashEq, passthrough) }; }; diff --git a/src/profile/utils.mo b/src/profile/utils.mo index aabf4de..e88c959 100644 --- a/src/profile/utils.mo +++ b/src/profile/utils.mo @@ -57,7 +57,7 @@ module { public func isAdmin(userId : PrincipalId) : Bool { func identity(x : PrincipalId) : Bool { x == userId }; - Option.isSome(Array.find(identity, adminIds)) + Option.isSome(Array.find(identity, adminIds)) }; public func hasAccess(userId : PrincipalId, profile : Profile) : Bool {