app/controllers/store/memberships_controller.rb in artfully_ose-1.2.0.pre.19 vs app/controllers/store/memberships_controller.rb in artfully_ose-1.2.0.pre.20
- old
+ new
@@ -4,9 +4,10 @@
@membership_kit = MembershipKit.where(:organization_id => store_organization.id).first
render :index
end
def index
- @membership_types = store_organization.membership_types.storefront
+ render :nothing => true unless store_organization.can? :access, :membership
+ @membership_types = store_organization.membership_types.storefront.order('price desc')
@membership_kit = MembershipKit.where(:organization_id => store_organization.id).first
end
end
\ No newline at end of file