mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 21:39: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> {
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user