]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Use CanCanCan for oauth clients controller
[rails.git] / app / abilities / ability.rb
index c4ea4ef8f83f8694fc48e067bfb5982357dc89fe..7138374f376692c37f26644c9b9bfe5731731210 100644 (file)
@@ -16,6 +16,7 @@ class Ability
 
     if user
       can :welcome, :site
+      can [:index, :new, :create, :show, :edit, :update, :destroy], ClientApplication
       can [:create, :edit, :comment, :subscribe, :unsubscribe], DiaryEntry
       can [:new, :create, :reply, :show, :inbox, :outbox, :mark, :destroy], Message
       can [:close, :reopen], Note