Sha256: 712c4765847dfe116349849231e357df692b89ca8ce9c6f43503c063386407b9
Contents?: true
Size: 215 Bytes
Versions: 71
Compression:
Stored size: 215 Bytes
Contents
class Ishapi::Ability include ::CanCan::Ability def initialize user user ||= User.new if user.profile && user.profile.manager? can :manage, :all else can :read, :all end end end
Version data entries
71 entries across 71 versions & 1 rubygems