1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +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> { public static async GetAccessLevel(groupID: number, userID: number) : Promise<GroupsAccessLevel> {
const membershipLevel = 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 //Check if the user is a confirmed member of group
if(membershipLevel == GroupMembershipLevels.ADMINISTRATOR) if(membershipLevel == GroupMembershipLevels.ADMINISTRATOR)