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