Applying more liberal editor config policy (#17125)

Prior to this commit, only those who could create posts could edit their confi

However, we are allowing users who can't create posts to edit posts.  So
we want to allow for them to change their editor configuration.

Revisits
- forem/forem#16516

Supplants
- forem/forem#16778

Related to
- forem/forem#17123
- forem/forem#16908
This commit is contained in:
Jeremy Friesen 2022-04-05 11:38:41 -04:00 committed by GitHub
parent f8a39bb596
commit 78933d0636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@
</div>
</div>
<% if policy(Article).create? %>
<% if policy(Article).has_existing_articles_or_can_create_new_ones? %>
<div class="crayons-card crayons-card--content-rows">
<h2 class="crayons-subtitle-1">
<%= t("views.settings.custom.writing") %>