From 10fb0b8904dc8ab2d7356d957f09afe48190e7e3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 24 Dec 2019 18:30:39 +0100 Subject: [PATCH] Fix error --- src/helpers/GroupsHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/GroupsHelper.ts b/src/helpers/GroupsHelper.ts index 8587794..e4f3bbe 100644 --- a/src/helpers/GroupsHelper.ts +++ b/src/helpers/GroupsHelper.ts @@ -118,7 +118,7 @@ export class GroupsHelper { public static async GetAccessLevel(groupID: number, userID: number) : Promise { const membershipLevel = - userID > 0 ? await this.GetMembershipLevel(userID, groupID) : GroupMembershipLevels.VISITOR; + userID > 0 ? await this.GetMembershipLevel(groupID, userID) : GroupMembershipLevels.VISITOR; //Check if the user is a confirmed member of group if(membershipLevel == GroupMembershipLevels.ADMINISTRATOR)