diff --git a/resources/views/settings/security.blade.php b/resources/views/settings/security.blade.php index 00ce1568..49f48b2d 100644 --- a/resources/views/settings/security.blade.php +++ b/resources/views/settings/security.blade.php @@ -27,7 +27,7 @@ @include('settings.security.device-panel') - @if(config('pixelfed.account_deletion') == true) + @if(config('pixelfed.account_deletion') && !$user->is_admin && $user->created_at->gt(now()->subHours(12)))

Danger Zone

+ @if( !$user->is_admin && $user->created_at->gt(now()->subDays(7)) )
  • Delete this Account

    @@ -49,6 +50,7 @@ Delete
  • + @endif @endif