Sha256: a120d5b9919a335ca26de16884530849c87396f139bbc4b7790f24ae7b3f51eb
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
# frozen_string_literal: true module Archangel ## # Site policy # class SitePolicy < ApplicationPolicy ## # Check if `#update` action is authorized for current user. Based on if # current user has the "admin" role # # @return [Boolean] true when User is an "admin" role # def update? admin_user? end ## # Check if `#sample` action is authorized for current user. # # @return [Boolean] true for all roles # def sample? true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.3.0 | app/policies/archangel/site_policy.rb |
archangel-0.0.8 | app/policies/archangel/site_policy.rb |
archangel-0.0.7 | app/policies/archangel/site_policy.rb |