]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Move profile-related settings to their own form
[rails.git] / app / abilities / ability.rb
index 9c832b43ac48bc278ba4b2f7e0dab3b99aaf7c11..018ce00966bd295e347fe8a5d8fa9c3b9bd4701b 100644 (file)
@@ -39,10 +39,15 @@ class Ability
 
       if Settings.status != "database_offline"
         can [:index, :new, :create, :show, :edit, :update, :destroy], ClientApplication
+        can [:index, :new, :create, :show, :edit, :update, :destroy], :oauth2_application
+        can [:index, :destroy], :oauth2_authorized_application
+        can [:new, :show, :create, :destroy], :oauth2_authorization
         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