Sha256: f6c4f4e68c86d165bf1b1338853924b830eedfa6b4fc5dfbe404566d3a10f1fd

Contents?: true

Size: 230 Bytes

Versions: 2

Compression:

Stored size: 230 Bytes

Contents

# frozen_string_literal: true

module Distribuo
  class AppPolicy < Distribuo::ApplicationPolicy
    def permitted_attributes
      return [] unless user.admin?

      %i[name release_type operating_system icon]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribuo-0.1.16 app/policies/distribuo/app_policy.rb
distribuo-0.1.8 app/policies/distribuo/app_policy.rb