Sha256: ca9cf5415e4a039b7fa4e2f8ac25c914cac4b0434c6554bd897d9d1775f1e4d4
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
require 'lanes/access' require_relative "model" module Lanes::Access module Roles # re-open the exising Support role class Support grant Skr::Customer, Skr::Sku, Skr::SalesOrder end class Accounting < Lanes::Access::Role grant Skr::Customer, Skr::PaymentTerm, Skr::Sku, Skr::SalesOrder lock_writes Skr::Sku, :gl_asset_account_id lock_writes Skr::Customer, :terms_id end class Purchasing < Lanes::Access::Role read Skr::Customer grant Skr::Sku, Skr::SalesOrder end end Role.grant_global_access(Skr::Address) Role.grant_global_access(:read, Skr::PaymentTerm) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.1.8 | lib/skr/access_roles.rb |