Class: Proclaim::SubscriptionPolicy::Scope

Inherits:
Scope
  • Object
show all
Defined in:
app/policies/proclaim/subscription_policy.rb

Instance Method Summary collapse

Instance Method Details

#resolveObject



26
27
28
29
30
31
32
33
# File 'app/policies/proclaim/subscription_policy.rb', line 26

def resolve
	if @user
		scope.all # Users can access all subscriptions
	else
		# Guests can see none
		scope.none
	end
end