X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b8a1a904c6273252c56998178b69f5f65d744d69..68481fe7753432ffd3051ede15f7518b1c0d73c9:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index 9516a3012..3116bc5cd 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -22,28 +22,28 @@ 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 + 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 :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 [:read, :create, :mark, :unmute, :destroy], Message + can [:show, :create, :destroy], Follow + can [:read, :create, :destroy], Message can [:close, :reopen], Note can [:read, :update], :preference can :update, :profile @@ -67,7 +67,8 @@ class Ability can [:hide, :unhide], [DiaryEntry, DiaryComment] can [:read, :resolve, :ignore, :reopen], Issue can :create, IssueComment - can [:set_status, :destroy], User + + can [:update], :user_status can [:read, :update], :users_list can [:create, :destroy], UserRole end