mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
@@ -383,7 +383,7 @@ class TorrentController extends BaseController
|
||||
{
|
||||
$user = auth()->user();
|
||||
$isRegexAllowed = $user->group->is_modo;
|
||||
$isRegex = fn ($field): bool => $isRegexAllowed
|
||||
$isRegex = fn ($field) => $isRegexAllowed
|
||||
&& \strlen((string) $field) > 2
|
||||
&& $field[0] === '/'
|
||||
&& $field[-1] === '/'
|
||||
|
||||
Reference in New Issue
Block a user