docbrown/app
Jeremy Friesen bcfbd523d4
Moving from user.trusted tests to policy tests (#17619)
The [`ArticlePolicy#moderate?`][1] method answers the questions around article
moderation.

At present this change does not introduce any significant changes (aside
from the JS logic loop).  The next "step" is to adjust the
`ArticlePolicy#moderate?` method to test if the user has a moderator
role.

Further, we'd need to see what is available on the action panel.

Related to forem/forem#17606

[1]:5ac3216a5a/app/policies/article_policy.rb (L160-L174)
2022-05-11 08:18:13 -04:00
..
assets Make Follow Buttons in User, Org and Tag Embeds "secondary" (#17602) 2022-05-10 16:37:39 -04:00
controllers Ensuring only privileged users may give certain reactions (#17632) 2022-05-10 16:13:23 -04:00
decorators Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
helpers Make Follow Buttons in User, Org and Tag Embeds "secondary" (#17602) 2022-05-10 16:37:39 -04:00
javascript Moving from user.trusted tests to policy tests (#17619) 2022-05-11 08:18:13 -04:00
lib I18nize Constants::Settings (#17086) 2022-05-11 09:58:37 +01:00
liquid_tags Sharpen RegEx that matches Forem-specific links (#17500) 2022-04-29 11:34:32 -04:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Moving from user.trusted tests to policy tests (#17619) 2022-05-11 08:18:13 -04:00
policies Moving from user.trusted tests to policy tests (#17619) 2022-05-11 08:18:13 -04:00
queries Wellness badge query+service refactor (#17592) 2022-05-09 16:44:50 -06:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07:00
services Wellness badge query+service refactor (#17592) 2022-05-09 16:44:50 -06:00
uploaders small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
validators Remove the "Getting Started" Section from the Config (#16033) 2022-01-20 07:31:35 -07:00
view_objects Patching ERB rendering of the data-info JSON (#16067) 2022-01-14 08:30:49 -05:00
views I18nize Constants::Settings (#17086) 2022-05-11 09:58:37 +01:00
workers feat: add an inflection and change instances of gdpr to GDPR (#17567) 2022-05-04 16:20:46 +02:00