app/controllers/ishapi/galleries_controller.rb in ishapi-0.1.8.181 vs app/controllers/ishapi/galleries_controller.rb in ishapi-0.1.8.182
- old
+ new
@@ -22,10 +22,10 @@
def show
@gallery = ::Gallery.unscoped.find_by :slug => params[:slug]
authorize! :show, @gallery
if @gallery.premium?
- if current_user&.profile&.has_premium_purchase( @gallery )
+ if @current_user&.profile&.has_premium_purchase( @gallery )
render 'show_premium_unlocked'
else
render 'show_premium_locked'
end
else