Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Valour/Server/Api/Dynamic/MessageApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public static async Task<IResult> PostMessageRouteAsync(
var member = await memberService.GetCurrentAsync(channel.PlanetId.Value);
if (member is null)
return ValourResult.Forbid("You are not a member of the planet this channel belongs to");

message.AuthorMemberId = member.Id;

// NOTE: We don't have to check View permission because lacking view will
// cause every other permission check to fail
Expand Down