docbrown/app/policies
rhymes c8abbe9d60 Pro: memberships (#3461)
* Add ProMembership model

* Implement ProMembershipsController#create

* Implement basic ProMembershipsController#show

* Add ProMembership to ledger

* Populate user history after pro subscription is created

* Add fields for expiration notifications

* Add ProMemberships::ExpirationNotifier to notify users of expiring memberships

* Add tasks for recurring jobs to notify users of expiration

* Add auto_recharge column to ProMembership

* Add ProMemberships::Biller (incomplete)

* Fix specs

* Add ProMembership to Administrate

* Fix spec

* Add has_enough_credits? to User and Organization

* Add Payments::Customer class

* Finish ProMembership::Biller functionality

* Fix ProMemberships::Creator check for credits

* Disable destroy actions for ProMembershipsController

* Correctly authenticate ProMembershipsController actions

* Make sure only pro user's history can be indexed

* Add ProMembershipsController#update action for auto recharge

* Use regular AR to save new credits and add touch to the purchaser

* Clarify Pro membership create policy

* Display information about an existing pro membership

* Add UI to show page

* Add system test for Pro membership creation

* Implement edit membership

* Make sure users with pro memberships can access history and dashboard pro

* Fix padding issue

* Show a different text for a user that has credits but not enough for Pro

* Move Pro Membership functionality inside settings

* Update Pro Membership link in email notifications

* Bust all relevant caches

* Add the Pro checkmark around the website

* Use Users::ResaveArticlesJob instead of delay

* Add/remove user from pro-members chat channel

* Use the appropriate Pro checkmark

* Remove unfinished pro elements

* Remove checkmark JS
2019-09-24 10:38:54 -07:00
..
internal Adjust BufferUpdatesController's authorization (#4070) 2019-09-20 11:50:34 -07:00
admin_policy.rb Various internal functionality adjustments (#1264) 2018-12-05 13:28:46 -05:00
api_secret_policy.rb ApiSecret model for Developer API (#1369) 2019-01-08 12:30:54 -05:00
application_policy.rb Adjust BufferUpdatesController's authorization (#4070) 2019-09-20 11:50:34 -07:00
article_policy.rb Pro Analytics: stats for a single article (#3120) 2019-06-13 19:02:09 -04:00
block_policy.rb #260 increase mentee-mentor description length (#405) 2018-08-20 10:20:23 -04:00
buffer_update_policy.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
chat_channel_membership_policy.rb [WIP] Connect misc improvements/debugs (#2880) 2019-05-20 10:08:51 -04:00
chat_channel_policy.rb Clean up new chat channel functionality and add tests (#2220) 2019-03-26 13:35:32 -04:00
classified_listing_policy.rb Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
comment_policy.rb Mute notifications for a comment thread (#1636) 2019-01-24 17:20:38 -05:00
follow_policy.rb Add point weights for tag follows (#1229) 2018-11-30 15:36:58 -05:00
github_repo_policy.rb Use Preact for asynchronous rendering for /settings/integrations (#986) 2018-10-31 15:51:07 -04:00
html_variant_policy.rb Add below-article html variant (#1669) 2019-01-28 14:31:43 -05:00
image_upload_policy.rb Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
message_policy.rb Edem/improvements/pundit coverage (#498) 2018-06-28 09:38:20 -04:00
organization_policy.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
pro_membership_policy.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
rating_vote_policy.rb Add experience level averaging to articles (#1922) 2019-02-28 08:17:29 -08:00
reaction_policy.rb [Done] Add Reaction Policy Spec (#547) 2018-07-10 14:12:04 -04:00
stripe_active_card_policy.rb Add stripe policies and specs (#529) 2018-07-02 17:19:25 -04:00
stripe_subscription_policy.rb Add stripe policies and specs (#529) 2018-07-02 17:19:25 -04:00
tag_policy.rb Update tag admin page(#1990) 2019-03-06 14:28:30 -05:00
user_policy.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
video_policy.rb Remove harsh video restriction and add video duration (#1811) 2019-02-16 17:42:44 -04:00