Skip to content

Commit

Permalink
zmniejszenie czasu na edycje posta z 24h na 30 min
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-boduch committed Oct 15, 2018
1 parent dbd84de commit 87a618b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Policies/PostPolicy.php
Expand Up @@ -70,6 +70,6 @@ private function hasEnoughReputation(User $user, Post $post): bool
*/
private function isNotOld(Post $post): bool
{
return $post->created_at->diffInHours(Carbon::now()) < 24;
return $post->created_at->diffInMinutes(Carbon::now()) < 30;
}
}

0 comments on commit 87a618b

Please sign in to comment.