Sha256: 6d713dcee1f6a99b00036865e80338171dc03ac3b60280ed1fd1b2b7179a1ae2
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
require 'lanes/access' require_relative "model" module Lanes::Access module Roles # re-open the exising Support role class Support read Skr::Invoice, Skr::Customer, Skr::Sku grant Skr::SalesOrder, Skr::TimeEntry end class Accounting < Lanes::Access::Role grant Skr::Customer, Skr::PaymentTerm, Skr::CustomerProject, Skr::Sku, Skr::SalesOrder, Skr::TimeEntry, Skr::GlTransaction, Skr::BankAccount, Skr::Payment lock_writes Skr::Customer, :terms lock Skr::Sku, :gl_asset_account lock Skr::Customer, :gl_receivables_account end class Purchasing < Lanes::Access::Role read Skr::Customer grant Skr::Sku, Skr::SalesOrder end class Workforce < Lanes::Access::Role read Skr::Customer, Skr::Sku grant Skr::SalesOrder, Skr::Invoice, Skr::TimeEntry end end Role.grant_global_access(Skr::Address) Role.grant_global_access(:read, Skr::PaymentTerm) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockor-0.3.0 | lib/skr/access_roles.rb |
stockor-0.2 | lib/skr/access_roles.rb |