1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-28 14:38:52 +00:00

Fix error

This commit is contained in:
Pierre HUBERT 2019-12-24 18:30:39 +01:00
parent 415bd461cc
commit 10fb0b8904

View File

@ -118,7 +118,7 @@ export class GroupsHelper {
public static async GetAccessLevel(groupID: number, userID: number) : Promise<GroupsAccessLevel> {
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)