manage bsp

This commit is contained in:
2014-07-24 09:22:06 +02:00
parent af9da058ab
commit 658ce0ed27

View File

@@ -9,7 +9,7 @@ class Ability
can [:show, :index], Studium can [:show, :index], Studium
can [:show, :index], Modulgruppe can [:show, :index], Modulgruppe
can [:show, :index], Modul can [:show, :index], Modul
can [:show, :index], Lva can [:show, :index, :beispiel_sammlung], Lva
can [:create, :show], Beispiel can [:create, :show], Beispiel
if loggedin if loggedin
can :like, Beispiel can :like, Beispiel
@@ -20,6 +20,7 @@ class Ability
can :manage, Modul can :manage, Modul
can :manage, Lva can :manage, Lva
can :manage, Studium can :manage, Studium
can :manage, Beispiel
end end
unless user.has_role?("fetadmin") unless user.has_role?("fetadmin")
cannot :delete, Studium cannot :delete, Studium