docbrown/app/controllers/concerns
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
..
.keep Initial commit 2018-02-28 16:11:08 -05:00
caching_headers.rb Adjusting ArticlePolicy for admin only posting (#16614) 2022-02-21 10:09:13 -05:00
development_dependency_checks.rb [15-Minute Fix] Refactor code smells (#13347) 2021-04-21 14:52:32 -05:00
edge_cache_safety_check.rb Remove docs from repo ✂✂✂ (#14579) 2021-08-23 17:23:42 -04:00
image_uploads.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
json_api_sort_param.rb 15 minute fix: Add default argument to JsonApiSortParam (#13369) 2021-04-14 10:32:07 +07:00
listings_toolkit.rb More ListingsToolkit refactoring (#16221) 2022-01-27 09:47:41 +07:00
session_current_user.rb [15-Minute Fix] Refactor code smells (#13347) 2021-04-21 14:52:32 -05:00
valid_request.rb Bump rubocop from 1.18.4 to 1.19.0 (#14489) 2021-08-13 13:14:59 +07:00