mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Fix issue for visitors
This commit is contained in:
parent
babd6b6516
commit
5d81421e8d
@ -92,7 +92,7 @@ export class UserController {
|
|||||||
info["pageLikes"] = await LikesHelper.Count(user.id, LikesType.USER);
|
info["pageLikes"] = await LikesHelper.Count(user.id, LikesType.USER);
|
||||||
info["user_like_page"] = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), user.id, LikesType.USER) : false;
|
info["user_like_page"] = h.signedIn ? await LikesHelper.IsLiking(h.getUserId(), user.id, LikesType.USER) : false;
|
||||||
|
|
||||||
info["can_post_texts"] = await UserHelper.CanCreatePosts(h.getUserId(), user.id);
|
info["can_post_texts"] = h.signedIn ? await UserHelper.CanCreatePosts(h.getUserId(), user.id) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
|
Loading…
Reference in New Issue
Block a user