We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf0616c + 2346840 commit 3b8f2d5Copy full SHA for 3b8f2d5
1 file changed
app/controllers/concepts.ts
@@ -33,9 +33,9 @@ export default class ConceptsController extends Controller {
33
34
get visibleConcepts(): ConceptModel[] {
35
return this.model.concepts.filter((concept) => {
36
- const canViewDraft = this.currentUser?.isStaff || concept.author === this.currentUser;
+ const canViewIfDraft = this.currentUser?.isStaff || concept.author === this.currentUser;
37
38
- return concept.statusIsPublished || (concept.statusIsDraft && canViewDraft);
+ return concept.statusIsPublished || (concept.statusIsDraft && canViewIfDraft);
39
});
40
}
41
0 commit comments