-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrading Stripe to 10.11.0 * Upgrading a few gems * Upgrading chart.js * Making sure paid features are protected and directing user's to the plan page when their organization has no subscription.
- Loading branch information
Showing
11 changed files
with
114 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
class ConnectorsController < ApplicationController | ||
before_action :authenticate_user! | ||
before_action :redirect_if_unauthenticated | ||
# before_action :authorize_connector_access, only: %i[index show create] | ||
|
||
def index; end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# app/policies/import_policy.rb | ||
|
||
class ImportPolicy | ||
attr_reader :user, :organization | ||
|
||
def initialize(user, organization) | ||
@user = user | ||
@organization = organization | ||
end | ||
|
||
def allowed? | ||
user.organization.active_subscription? && user.has_role?(:allowed_role, organization) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# app/policies/sso_policy.rb | ||
|
||
class SsoPolicy | ||
attr_reader :user, :organization | ||
|
||
def initialize(user, organization) | ||
@user = user | ||
@organization = organization | ||
end | ||
|
||
def allowed? | ||
user.organization.active_subscription? && user.has_role?(:allowed_role, organization) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
KH3uL0Ep3+qQ47NXoxR/Jc23axwCiWe38lvX8T+mzPYnCSTlS0RlwpFKLEx9KeVSB7bSU42OAmxb77pJvhPSwZkzA5rAxyrlV4kqnEqj/oTdCg4cL7yVdqHCTrrUjbZqjiTEL7KfKtfmQ3+YOw0zOfLSq8wWjWJdPTL3w7VbdGwMoYGOC4W/4SWwctEojTpedEhV4kn6usoZZMSpqI/ravecLL5j8P5RTr5i/x3kStlDwHdVmT58ciy/zIWphBLd7nf+RoWYN/jmJ4aGXw5/eOSFlWjap/lV2DWUUxflsPR/YEn3F0fb6K18gawiNkSMIMYJLY1nsROFXrXGOCDOt1HZLEMSqjZbD9RcEn2Tt/NAwjDRmcwUGK4r2G2r9EmnjsZsdSieP4bi1UB/B1F7GYIHJTyUQLaAtw35BAMUZerqTfo5Oodi6dxTSHN1gWCveQk5GQ0rqzl4ds5hvIBW2tgNCjBi66tfavY8KnV5ooALzdD3dYt6pn1d9fg6U5w1RssNLnhPiN+bZ7/HkfbiCWAI+cHedZ+ZfhzIokYkY0D7lCzODm2EWwdo4x+xKc1jlAaMFVvJXP5gbv5oU4z4T997bnN1FI+NsUI0uXxxVL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hlWlJ14ZYmk47zRD9R9rtAKAzUchFdCN1gnFhh1l+yXHX91bmsPQg5jzaNjN3nGq9hrJfXvB1dqs6rblE0hMqnXh56DJ9eSPzsosCZAbpBJgBX/TnjhpT37/n8SnnB0+QfrFKUR0UqFQ==--up3di3KuVXXLkU0n--jvrAxVyumqvlr+lX4GVozw== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters