1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-25 23:09:22 +00:00

Fix check issue

This commit is contained in:
Pierre HUBERT 2020-01-04 10:29:42 +01:00
parent bfd7f4cf7b
commit 8ba28a88dc

View File

@ -209,7 +209,7 @@ export class PostsHelper {
else if(post.kindPage == PostPageKind.PAGE_KIND_GROUP) { else if(post.kindPage == PostPageKind.PAGE_KIND_GROUP) {
// TODO : check this code // TODO : check this code
const accessLevel = await GroupsHelper.GetMembershipLevel(userID, post.groupID); const accessLevel = await GroupsHelper.GetMembershipLevel(post.groupID, userID);
// Moderator & admin = intermediate access // Moderator & admin = intermediate access
if(accessLevel < GroupMembershipLevels.MEMBER) if(accessLevel < GroupMembershipLevels.MEMBER)