Sha256: 83125f9c211951461ac9511c7b6e899d59a51f14d05703c568a90ef912a4e57a
Contents?: true
Size: 440 Bytes
Versions: 21
Compression:
Stored size: 440 Bytes
Contents
class Ability include CanCan::Ability def initialize(user) case user.try(:role).try(:name) when 'Administrator' can :manage, [ PatronMerge, PatronMergeList, SeriesStatementMerge, SeriesStatementMergeList ] when 'Librarian' can :manage, [ PatronMerge, PatronMergeList, SeriesStatementMerge, SeriesStatementMergeList ] end end end
Version data entries
21 entries across 21 versions & 1 rubygems