Page MenuHomePhorge

D2740.1775419061.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D2740.1775419061.diff

diff --git a/src/app/Http/Controllers/API/V4/Admin/UsersController.php b/src/app/Http/Controllers/API/V4/Admin/UsersController.php
--- a/src/app/Http/Controllers/API/V4/Admin/UsersController.php
+++ b/src/app/Http/Controllers/API/V4/Admin/UsersController.php
@@ -90,6 +90,22 @@
$result->push($owner);
}
}
+ } elseif (substr($search, 0, 4) == 'cst_') {
+ $wallet = \App\WalletSetting::where('value', $search)->first()->wallet();
+
+ if ($wallet) {
+ if ($owner = $wallet->owner()->withTrashed()->first()) {
+ $result->push($owner);
+ }
+ }
+ } elseif (substr($search, 0, 3) == 'tr_') {
+ $payment = \App\Payment::find($search);
+
+ if ($payment) {
+ if ($owner = $payment->wallet()->owner()->withTrashed()->first()) {
+ $result->push($owner);
+ }
+ }
} elseif (!empty($search)) {
$wallet = Wallet::find($search);

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 7:57 PM (1 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18834329
Default Alt Text
D2740.1775419061.diff (1 KB)

Event Timeline