fix(server): toc can be published logic
Targets: #1078 (closed)
Changes proposed
- Moved logic to compute toc validation from frontend to backend
- Created a new method
canBePublished
in Toc to encapsulate the logic to compute whether Toc can be published or not - Used the same
canBePublished
for both backend and frontend validation