Limit chapter in UI to those who can submit

This commit is contained in:
Ajay
2022-07-05 13:34:30 -04:00
parent 8114e0dcf7
commit 969b303c59
3 changed files with 7 additions and 1 deletions

View File

@@ -406,6 +406,8 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
)];
for (const category of (this.props.categoryList ?? CompileConfig.categoryList)) {
if (category === "chapter" && !Config.config.canSubmitChapter) break;
elements.push(
<option value={category}
key={category}