X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8ecbe9b07d60828c4d20fbf329696c12bd23b917..feeaa1b03f0dd8f1ecdcdcdcc8e2b9dbf26f95f5:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index adedce543..bd3ea28bb 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -4,7 +4,7 @@ class Ability include CanCan::Ability def initialize(user) - can :query, :browse + can :read, :feature_query can :read, [Node, Way, Relation, OldNode, OldWay, OldRelation] can [:show, :create], Note can :search, :direction @@ -29,14 +29,14 @@ class Ability if user&.active? can :welcome, :site - can :read, [:deletion, :account_terms, :account_pd_declaration] + can :read, [:deletion, :account_terms, :account_pd_declaration, :account_home] if Settings.status != "database_offline" can [:read, :create, :destroy], :changeset_subscription can [:read, :create, :update, :destroy], :oauth2_application can [:read, :destroy], :oauth2_authorized_application can [:read, :create, :destroy], :oauth2_authorization - can [:update, :destroy], :account + can [:read, :update, :destroy], :account can :update, :account_terms can :create, :account_pd_declaration can :read, :dashboard