include CanCan::Ability
def initialize(user)
- can [:relation, :relation_history, :way, :way_history, :node, :node_history, :query], :browse
- can [:show], OldNode
- can [:show], OldWay
- can [:show], OldRelation
+ can :query, :browse
+ can :show, [Node, Way, Relation]
+ can [:index, :show], [OldNode, OldWay, OldRelation]
can [:show, :new], Note
can :search, :direction
can [:index, :permalink, :edit, :help, :fixthemap, :offline, :export, :about, :communities, :preview, :copyright, :key, :id], :site