8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'app/controllers/store/donations_controller.rb', line 8
def index
raise ActionController::RoutingError.new('Not Found') unless @store_organization.has_kit?(:regular_donation)
if current_user && current_user.current_organization == @store_organization
if !@store_organization.has_active_donation_only_storefront?
flash[:notice] = "You are seeing a preview of your donation-only storefront. To make this page visible to the general public, go to your 501(c)(3) kit configuration and check \"Display Donation-Only Storefront\""
end
else
raise ActionController::RoutingError.new('Not Found') unless @store_organization.has_active_donation_only_storefront?
end
end
|