From d2f269f15bfdcfb7234cb2bfe1a2784280d67379 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Thu, 24 Jul 2014 09:22:06 +0200 Subject: [PATCH] manage bsp --- app/models/ability.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/ability.rb b/app/models/ability.rb index 616979b..011e67b 100755 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -9,7 +9,7 @@ class Ability can [:show, :index], Studium can [:show, :index], Modulgruppe can [:show, :index], Modul - can [:show, :index], Lva + can [:show, :index, :beispiel_sammlung], Lva can [:create, :show], Beispiel if loggedin can :like, Beispiel @@ -20,6 +20,7 @@ class Ability can :manage, Modul can :manage, Lva can :manage, Studium + can :manage, Beispiel end unless user.has_role?("fetadmin") cannot :delete, Studium