Skip to content

Commit

Permalink
Change min age of backup policy from 1 week to 6 days (mastodon#27200)
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian authored and vmstan committed Jan 5, 2024
1 parent 5e4d1e6 commit 72a34be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/policies/backup_policy.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class BackupPolicy < ApplicationPolicy
MIN_AGE = 1.week
MIN_AGE = 6.days

def create?
user_signed_in? && current_user.backups.where('created_at >= ?', MIN_AGE.ago).count.zero?
Expand Down

0 comments on commit 72a34be

Please sign in to comment.