mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 03:34:22 -05:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
@@ -64,7 +64,7 @@ class InviteController extends Controller
|
||||
return \redirect()->route('home.index')
|
||||
->withErrors('Your Invite Rights Have Been Revoked!');
|
||||
}
|
||||
if (\config('other.invites_restriced') == true && !\in_array($user->group->name, \config('other.invite_groups'), true)) {
|
||||
if (\config('other.invites_restriced') == true && ! \in_array($user->group->name, \config('other.invite_groups'), true)) {
|
||||
return \redirect()->route('home.index')
|
||||
->withErrors('Invites are currently disabled for your group.');
|
||||
}
|
||||
@@ -86,7 +86,7 @@ class InviteController extends Controller
|
||||
$carbon = new Carbon();
|
||||
$user = $request->user();
|
||||
|
||||
if (\config('other.invites_restriced') == true && !\in_array($user->group->name, \config('other.invite_groups'), true)) {
|
||||
if (\config('other.invites_restriced') == true && ! \in_array($user->group->name, \config('other.invite_groups'), true)) {
|
||||
return \redirect()->route('home.index')
|
||||
->withErrors('Invites are currently disabled for your group.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user