Sha256: 12bb51ffd2f8ca3b231b62c19f96bb14f067f0e42e9fcf82e3ff4ab6f8ee5ab3
Contents?: true
Size: 484 Bytes
Versions: 24
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true # generado con pg_rails class EmailLogPolicy < ApplicationPolicy class Scope < ApplicationPolicy::Scope # def resolve # if policy.acceso_total? # scope.all # else # scope.none # end # end end # def puede_editar? # acceso_total? && !record.readonly? # end # def puede_crear? # acceso_total? || user.asesor? # end # def puede_borrar? # acceso_total? && !record.readonly? # end end
Version data entries
24 entries across 24 versions & 1 rubygems