mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Fix error
This commit is contained in:
parent
415bd461cc
commit
10fb0b8904
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user