Class: Proclaim::ImagePolicy::Scope

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

Instance Method Summary collapse

Instance Method Details

#resolveObject



20
21
22
23
24
25
26
# File 'app/policies/proclaim/image_policy.rb', line 20

def resolve
	if @user
		scope.all # Users can access all images
	else
		nil
	end
end