Browse Source

Restrict delete for CDAO models

pull/6/head
Angel Aviel Domaoan 4 years ago committed by Angel Aviel Domaoan
parent
commit
14b954a71e
  1. 5
      app/models/ability.rb

5
app/models/ability.rb

@ -11,6 +11,11 @@ class Ability
can :display, Cdao::Jurisprudence
can :manage, :all
cannot :destroy, Cdao::Jurisprudence
cannot :destroy, Cdao::Library
cannot :destroy, Cdao::LibrarySubject
cannot :destroy, Cdao::Subject
end
end

Loading…
Cancel
Save