docbrown/app
Jeremy Friesen d055613676
Adjusting ArticlePolicy for admin only posting (#16614)
* Adjusting ArticlePolicy for admin only posting

The goal of this commit is actually two fold:

1) To add documentation regarding my current emerging understanding of
   our caching implementation as it relates to our authorization and
   authentication.
2) Flippiing "on" the feature's core authorization check.

Buried within this is the desired normalization of the authorization
between the `ArticlePolicy`'s `#create?`, `#preview?`, `#new?`.

My testing plan for this is to ask for SRE to spin-up a canary, then
test.  What does that look like?  I'm uncertain because this is nudge
closer towards our edge-caching strategy.  Which makes robust testing
more difficult.

Closes forem/forem#16483
Related to #16529, #16571, #16536, #16529
Informs #16490, #16606

* Update spec/requests/editor_spec.rb

Co-authored-by: Jamie Gaskins <jgaskins@hey.com>

Co-authored-by: Jamie Gaskins <jgaskins@hey.com>
2022-02-21 10:09:13 -05:00
..
assets Small win: Add "Feature post" button alongside new "admin actions" drawer in mod panel. (#16544) 2022-02-17 12:43:27 -05:00
controllers Adjusting ArticlePolicy for admin only posting (#16614) 2022-02-21 10:09:13 -05:00
decorators app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
errors A suspended user returns 403 instead of 500 (#16408) 2022-02-04 09:42:23 -05:00
forms Using a Form Object that will persist for the Creator Settings Form (#15684) 2021-12-10 17:07:40 +02:00
helpers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
javascript Revert "Only make one network call to fetch all existing tags in editor (#16610)" (#16641) 2022-02-18 11:54:38 +00:00
lib Implement Tabs for the Admin Member Detail View (#16640) 2022-02-18 10:47:53 -07:00
liquid_tags escape all the dots (that do not represent characters) (#16638) 2022-02-17 18:18:47 -05:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Removes what appears to be an usused comment from admin_menu.rb (#16644) 2022-02-21 06:52:57 -07:00
policies Adjusting ArticlePolicy for admin only posting (#16614) 2022-02-21 10:09:13 -05:00
queries small non-views ruby i18n (#16004) 2022-01-11 10:05:18 +07:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Extracting container for allowed tags & attrs (#15338) 2021-12-16 12:24:45 -05:00
serializers Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07:00
services Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07: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 removed dev.to from _terms text and replaced with community_name (#16646) 2022-02-21 06:51:54 -07:00
workers Use perform_bulk in Podcasts::EnqueueGetEpisodesWorker (#16325) 2022-01-28 11:32:25 +07:00