app/policies/itsf/backend/engine_policy.rb in itsf_backend-2.2.1 vs app/policies/itsf/backend/engine_policy.rb in itsf_backend-3.0.0

- old
+ new

@@ -3,12 +3,12 @@ def access? permission_identifier = self.class.name.gsub('Policy', '').underscore allowed = user.respond_to?(:allowed_to?) ? user.allowed_to?(permission_identifier) : false if allowed - Rails.logger.debug "User #{user} is allowed to access #{permission_identifier}" + Rails.logger.debug "User #{user.try_all(*Itsf::Backend.resource_title_methods)} is allowed to access #{permission_identifier}" else - Rails.logger.debug "User #{user} is not allowed to access #{permission_identifier}" + Rails.logger.debug "User #{user.try_all(*Itsf::Backend.resource_title_methods)} is not allowed to access #{permission_identifier}" end allowed end end end