themen spezifische rollen

This commit is contained in:
Andreas Stephanides
2015-02-10 14:04:54 +01:00
parent 2b483ae9e9
commit 7326b08729
2 changed files with 2 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ class Ability
can :manage, Themengruppe
can :manage, Attachment
end
can [:update,:edit,:verwalten, :showdraft], Thema, :id=>Thema.with_role(:editor, user).pluck(:id)
unless user.has_role?("fetadmin")
cannot :delete, Themengruppe
cannot :delete, Thema