]> git.openstreetmap.org Git - rails.git/commitdiff
Merge pull request #5514 from AntonKhorev/pd-declaration
authorAndy Allan <git@gravitystorm.co.uk>
Sat, 15 Feb 2025 14:03:55 +0000 (14:03 +0000)
committerGitHub <noreply@github.com>
Sat, 15 Feb 2025 14:03:55 +0000 (14:03 +0000)
Remove public domain checkbox from signup and terms pages

1  2 
app/abilities/ability.rb
app/controllers/accounts/terms_controller.rb
config/locales/en.yml
config/routes.rb

index 3116bc5cdd451501ccbaebe66d3034f0178c2887,f461314540c25a54bead71854dfd516e8499fe56..adedce543e0f889ec519e07a378b26e40bd80a15
@@@ -29,10 -29,10 +29,10 @@@ class Abilit
  
      if user&.active?
        can :welcome, :site
-       can :read, [:deletion, :account_terms]
+       can :read, [:deletion, :account_terms, :account_pd_declaration]
  
        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
Simple merge
Simple merge