mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-28 14:38:52 +00:00
Fix check issue
This commit is contained in:
parent
bfd7f4cf7b
commit
8ba28a88dc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user