X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/af273f5d6ae160de0001ce1ac0c087d92a2463c6..6c1d73a509a1ac2216a704f3dc5534d573e5d7ae:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index b8e21b486..e9fd6f7bb 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -36,13 +36,14 @@ class Ability if user can :welcome, :site can [:revoke, :authorize], :oauth + can [:show], :deletion if Settings.status != "database_offline" can [:index, :new, :create, :show, :edit, :update, :destroy], ClientApplication can [:index, :new, :create, :show, :edit, :update, :destroy], :oauth2_application can [:index, :destroy], :oauth2_authorized_application can [:new, :show, :create, :destroy], :oauth2_authorization - can [:edit, :update], :account + can [:edit, :update, :destroy], :account can [:show], :dashboard can [:new, :create, :edit, :update, :comment, :subscribe, :unsubscribe], DiaryEntry can [:make_friend, :remove_friend], Friendship