Module: Authorizable::ModelMethods::InstanceMethods

Defined in:
lib/authorizable.rb

Instance Method Summary collapse

Instance Method Details

#has_permission_for?(permission, user, container) ⇒ Boolean

Generic method called on an instance to check if the permission is matching or no

Returns:

  • (Boolean)


146
147
148
# File 'lib/authorizable.rb', line 146

def has_permission_for?(permission, user, container)
	return accepting_action(user, permission, container)
end