Sha256: f146da69e326917935301db18bbb835fe2ea06570a27fd7e4b4e430fa82aded1

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 app/policies/archangel/site_policy.rb