]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Use CanCanCan for oauth clients controller
[rails.git] / app / abilities / ability.rb
index 1fcf6cbeef9fc1b5dc657e43811d9044d1342be7..7138374f376692c37f26644c9b9bfe5731731210 100644 (file)
@@ -16,7 +16,9 @@ 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
       can [:new, :create], Report
       can [:account, :go_public, :make_friend, :remove_friend, :api_details, :api_gpx_files], User