X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8db2ff289f2bd0927fdcdc5bcb6ec33126d27faa..aabe8815b304998263a2e670dcf7e02800471e22:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index 651dc4973..3ba2ab707 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -22,15 +22,14 @@ class Ability can [:create, :update], :password can :read, Redaction can [:create, :destroy], :session - can [:read, :data, :georss], Trace + can [:read, :data], Trace can [:read, :create, :suspended, :auth_success, :auth_failure], User - can [:read, :update], :account_terms can :read, UserBlock end if user&.active? can :welcome, :site - can :read, :deletion + can :read, [:deletion, :account_terms] if Settings.status != "database_offline" can [:subscribe, :unsubscribe], Changeset @@ -38,11 +37,12 @@ class Ability can [:read, :destroy], :oauth2_authorized_application can [:read, :create, :destroy], :oauth2_authorization can [:update, :destroy], :account + can :update, :account_terms can :read, :dashboard can [:create, :subscribe, :unsubscribe], DiaryEntry can :update, DiaryEntry, :user => user can [:create], DiaryComment - can [:make_friend, :remove_friend], Friendship + can [:show, :create, :destroy], Follow can [:read, :create, :mark, :unmute, :destroy], Message can [:close, :reopen], Note can [:read, :update], :preference