]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/ability.rb
Rework capabilities to avoid assumptions about missing tokens
[rails.git] / app / models / ability.rb
index 17ed6715cae2732ae73cee044c7094322b0d0028..f55f19e4ea7e2d918e81ee4a95f66990dea9b530 100644 (file)
@@ -13,6 +13,7 @@ class Ability
       can :welcome, :site
       can [:create, :edit, :comment, :subscribe, :unsubscribe], DiaryEntry
       can [:new, :create], Report
+      can [:read, :read_one, :update, :update_one, :delete_one], UserPreference
 
       if user.moderator?
         can [:index, :show, :resolve, :ignore, :reopen], Issue