Sha256: 41e5b3a80871bd8573972be8566b4abf60ad0e573d88ed014b5d9086d7669d6e
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
module Arpa module Services class Verifier def initialize(current_user) @current_user = current_user end def has_access?(resource, action) free_access_action = action.to_s.split('_')[0] return true if @current_user.is_arpa_admin? || free_access_action.empty? action_finder.permission(resource.to_s, action.to_s, @current_user.profile_ids) end private def action_finder @action_finder ||= Arpa::Repositories::Actions::Finder.new end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
arpa-0.2.0 | lib/arpa/services/verifier.rb |
arpa-0.1.0 | lib/arpa/services/verifier.rb |
arpa-0.0.9 | lib/arpa/services/verifier.rb |