Soft deleting whiteboards

This commit is contained in:
Veljko Tosic
2026-02-19 00:21:55 +01:00
parent c4ab8aa53e
commit c99aaa1062
7 changed files with 96 additions and 0 deletions

View File

@@ -38,4 +38,12 @@ public class WhiteboardErrors : AbstractErrors<Whiteboard, WhiteboardId>
return CreateValidationError(code, message);
}
public static ValidationError OnlyOwnerCanDeleteWhiteboard(UserId currentUserId)
{
string code = "only_owner_can_delete_whiteboard";
string message = $"Only owner of whiteboard can delete the whiteboard. Current user id: '{currentUserId}' is not the owner.";
return CreateValidationError(code, message);
}
}