- can [:index, :create, :comment, :feed, :show, :search, :mine], Note
- can [:index, :show], Redaction
- can [:search_all, :search_nodes, :search_ways, :search_relations], :search
- can [:trackpoints], :swf
- can [:index, :show, :data, :georss, :picture, :icon], Trace
- can [:terms, :api_users, :login, :logout, :new, :create, :save, :confirm, :confirm_resend, :confirm_email, :lost_password, :reset_password, :show, :api_read, :auth_success, :auth_failure], User
- can [:index, :show, :blocks_on, :blocks_by], UserBlock
+ can [:token, :request_token, :access_token, :test_request], :oauth
+
+ if Settings.status != "database_offline"
+ can [:index, :feed], Changeset
+ can :index, ChangesetComment
+ can [:confirm, :confirm_resend, :confirm_email], :confirmation
+ can [:index, :rss, :show, :comments], DiaryEntry
+ can [:index], Note
+ can [:lost_password, :reset_password], :password
+ can [:index, :show], Redaction
+ can [:new, :create, :destroy], :session
+ can [:index, :show, :data, :georss, :picture, :icon], Trace
+ can [:terms, :new, :create, :save, :suspended, :show, :auth_success, :auth_failure], User
+ can [:index, :show, :blocks_on, :blocks_by], UserBlock
+ can [:index, :show], Node
+ can [:index, :show, :full, :ways_for_node], Way
+ can [:index, :show, :full, :relations_for_node, :relations_for_way, :relations_for_relation], Relation
+ can [:history, :version], OldNode
+ can [:history, :version], OldWay
+ can [:history, :version], OldRelation
+ end