mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
update: UserGroups ENUM
This commit is contained in:
@@ -41,10 +41,10 @@ class PrivacySettingController extends Controller
|
||||
$validGroups = Group::query()
|
||||
->where('is_modo', '=', '0')
|
||||
->where('is_admin', '=', '0')
|
||||
->where('id', '!=', UserGroups::VALIDATING)
|
||||
->where('id', '!=', UserGroups::PRUNED)
|
||||
->where('id', '!=', UserGroups::BANNED)
|
||||
->where('id', '!=', UserGroups::DISABLED)
|
||||
->where('id', '!=', UserGroups::VALIDATING->value)
|
||||
->where('id', '!=', UserGroups::PRUNED->value)
|
||||
->where('id', '!=', UserGroups::BANNED->value)
|
||||
->where('id', '!=', UserGroups::DISABLED->value)
|
||||
->pluck('id');
|
||||
|
||||
$request->validate([
|
||||
@@ -154,10 +154,10 @@ class PrivacySettingController extends Controller
|
||||
'groups' => Group::query()
|
||||
->where('is_modo', '=', '0')
|
||||
->where('is_admin', '=', '0')
|
||||
->where('id', '!=', UserGroups::VALIDATING)
|
||||
->where('id', '!=', UserGroups::PRUNED)
|
||||
->where('id', '!=', UserGroups::BANNED)
|
||||
->where('id', '!=', UserGroups::DISABLED)
|
||||
->where('id', '!=', UserGroups::VALIDATING->value)
|
||||
->where('id', '!=', UserGroups::PRUNED->value)
|
||||
->where('id', '!=', UserGroups::BANNED->value)
|
||||
->where('id', '!=', UserGroups::DISABLED->value)
|
||||
->latest('level')
|
||||
->get(),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user