X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/95b919c5d1e33688b0841c7d38602372c2e4c4a3..dfc843e7af602350cb240c17b98319f9fa00d08a:/app/abilities/ability.rb diff --git a/app/abilities/ability.rb b/app/abilities/ability.rb index 7ed6470b8..05f4952ac 100644 --- a/app/abilities/ability.rb +++ b/app/abilities/ability.rb @@ -23,13 +23,13 @@ class Ability can :read, Redaction can [:create, :destroy], :session can [:read, :data, :georss], Trace - can [:read, :terms, :create, :save, :suspended, :auth_success, :auth_failure], User + can [:read, :create, :suspended, :auth_success, :auth_failure], User 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 @@ -37,6 +37,7 @@ 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