docbrown/spec/policies
Alex 347a4bbc75
[deploy] Add contexts and permissions to liquid tags (#8917)
* Make liquid tags adhere to context and permission

* Undo updates to all liquid tags and update error

* ACTUALLY update errors this time

* Typo

* Refactor error handling and add support for Comment

* Fix specs

* Code cleanup

* Prettify error message

* Add comment clarifying error

* parsed --> parse

* Use a policy for validating roles

* Fix pretty error message

* Return early if valid source

* Get rid of duplicate current_user

* Add comment to Pundit.authorize

* LiquidTagPolicy specs

* Update liquid tag docs

* Update docs

* Use parse_context argument for clarity

* Remove duplicate guard clause for VALID_ROLES

* Update docs
2020-06-30 14:53:18 -04:00
..
admin_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
api_secret_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
article_policy_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
block_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
buffer_update_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
chat_channel_membership_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
chat_channel_policy_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
comment_policy_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
follow_policy_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
github_repo_policy_spec.rb Refactoring GitHub Repos functionality - step 1 (#7764) 2020-05-12 13:48:19 +02:00
html_variant_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
image_upload_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
internal_policy_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
liquid_tag_policy_spec.rb [deploy] Add contexts and permissions to liquid tags (#8917) 2020-06-30 14:53:18 -04:00
organization_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
reaction_policy_spec.rb nothing to see here....except maybe reverting a push to master (#8308) 2020-06-05 20:34:21 -05:00
response_template_policy_spec.rb Add response templates for internal usage (#6676) 2020-03-20 11:32:55 -04:00
stripe_active_card_policy_spec.rb Remove leftover Stripe subscriptions code (#6243) 2020-02-24 08:33:36 -05:00
tag_policy_spec.rb Use build_stubbed in Policy specs (#4017) [ci skip] 2019-09-13 11:38:58 -04:00
user_policy_spec.rb [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
video_policy_spec.rb Remove harsh video restriction and add video duration (#1811) 2019-02-16 17:42:44 -04:00