X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4bed9c12a0b5e8302098f1646802ce247abf95ee..ec3dad11d5b4765c6fae16ce90875aa62ff75eff:/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