1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-28 14:38:52 +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) {
// TODO : check this code
const accessLevel = await GroupsHelper.GetMembershipLevel(userID, post.groupID);
const accessLevel = await GroupsHelper.GetMembershipLevel(post.groupID, userID);
// Moderator & admin = intermediate access
if(accessLevel < GroupMembershipLevels.MEMBER)