]> git.openstreetmap.org Git - rails.git/blobdiff - app/abilities/ability.rb
Merge remote-tracking branch 'upstream/pull/4579'
[rails.git] / app / abilities / ability.rb
index 3802fb8261b2dcab357ee362fb2ec595c2af680d..b43cc6b29af238e3cd54328282de367b0a9ea6b1 100644 (file)
@@ -4,7 +4,8 @@ class Ability
   include CanCan::Ability
 
   def initialize(user)
-    can [:relation, :way, :node, :query], :browse
+    can :query, :browse
+    can :show, [Node, Way, Relation]
     can [:index, :show], [OldNode, OldWay, OldRelation]
     can [:show, :new], Note
     can :search, :direction