1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Fix issue for visitors

This commit is contained in:
Pierre HUBERT 2020-01-03 14:36:00 +01:00
parent babd6b6516
commit 5d81421e8d

View File

@ -92,7 +92,7 @@ export class UserController {
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["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;