neuigkeiten sort und ability

This commit is contained in:
Andreas Stephanides
2015-03-04 15:51:44 +01:00
parent c01590f36c
commit 02c5cc2d55
4 changed files with 34 additions and 16 deletions

View File

@@ -92,7 +92,7 @@ class Ability
# Rechteverwaltung fuer Neuigkeiten
can :index, Rubrik
can [:show], Rubrik, :public=>true
can [:list], Neuigkeit, Neuigkeit.public.published
can [:list], Neuigkeit, :cache_published=>true, :public=>true
can :show, Neuigkeit, :rubrik=>{:public=>true}
if loggedin