forked from bofh/fetsite
themen spezifische rollen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user