]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Improve behaviour of secondary action lists when wrapping
[rails.git] / app / abilities / ability.rb
index c03ab288ca36d06c309c90e406a8ad5f18ea5398..769fbca475e401ba9538ae6164cd60f84e6bf6fe 100644 (file)
@@ -42,10 +42,13 @@ class Ability
         can [:index, :new, :create, :show, :edit, :update, :destroy], :oauth2_application
         can [:index, :destroy], :oauth2_authorized_application
         can [:new, :show, :create, :destroy], :oauth2_authorization
+        can [:show], :dashboard
         can [:new, :create, :edit, :update, :comment, :subscribe, :unsubscribe], DiaryEntry
         can [:make_friend, :remove_friend], Friendship
         can [:new, :create, :reply, :show, :inbox, :outbox, :mark, :destroy], Message
         can [:close, :reopen], Note
+        can [:show, :edit, :update], :preference
+        can [:edit, :update], :profile
         can [:new, :create], Report
         can [:mine, :new, :create, :edit, :update, :destroy], Trace
         can [:account, :go_public], User