scaffoldsgesäubert

This commit is contained in:
Andreas Stephanides
2013-02-12 10:08:44 +01:00
parent d18c411a84
commit 232e6cefff
15 changed files with 88 additions and 178 deletions

View File

@@ -13,6 +13,8 @@ class Ability
can :read, Modulgruppe
if user.has_role? "newsadmin"
can :manage, Modulgruppe
can :addmoderator, Modulgruppe
can :addmoderator, Rubrik
end
# The first argument to `can` is the action you are giving the user permission to do.
# If you pass :manage it will apply to every action. Other common actions here are