From 8ba28a88dc6053062d05b37193626361c06090cc Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 4 Jan 2020 10:29:42 +0100 Subject: [PATCH] Fix check issue --- src/helpers/PostsHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/PostsHelper.ts b/src/helpers/PostsHelper.ts index 19d0e5d..dacfef9 100644 --- a/src/helpers/PostsHelper.ts +++ b/src/helpers/PostsHelper.ts @@ -209,7 +209,7 @@ export class PostsHelper { else if(post.kindPage == PostPageKind.PAGE_KIND_GROUP) { // TODO : check this code - const accessLevel = await GroupsHelper.GetMembershipLevel(userID, post.groupID); + const accessLevel = await GroupsHelper.GetMembershipLevel(post.groupID, userID); // Moderator & admin = intermediate access if(accessLevel < GroupMembershipLevels.MEMBER)