Sha256: 54dd4e43cf9eb6bd6f9944a157df301f2cdfd1c2fc2c3b3c109b02a20bf0e106
Contents?: true
Size: 452 Bytes
Versions: 16
Compression:
Stored size: 452 Bytes
Contents
# Wrap core level specific CanCan rules. Should be included in the main app's # Ability class. #------------------------------------------------------------------------------ module DmCore module Concerns module Ability def dm_core_abilities(user) if user if user.is_admin? || user.has_role?(:manager) can :manage, :all can :access_admin, :all end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems