Skip to content

Commit

Permalink
Fix: Works with dfx@0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Jones committed Mar 6, 2020
1 parent 2d8c347 commit 2608679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/profile/database.mo
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,6 @@ module {

func init() : HashMap.HashMap<PrincipalId, Profile> {
func passthrough(hash : PrincipalId) : PrincipalId { hash };
HashMap.HashMap<PrincipalId, Profile>(1, Hash.Hash.hashEq, passthrough)
HashMap.HashMap<PrincipalId, Profile>(1, Hash.hashEq, passthrough)
};
};
2 changes: 1 addition & 1 deletion src/profile/utils.mo
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module {

public func isAdmin(userId : PrincipalId) : Bool {
func identity(x : PrincipalId) : Bool { x == userId };
Option.isSome<PrincipalId>(Array.find<PrincipalId>(identity, adminIds))
Option.isSome(Array.find<PrincipalId>(identity, adminIds))
};

public func hasAccess(userId : PrincipalId, profile : Profile) : Bool {
Expand Down

0 comments on commit 2608679

Please sign in to comment.