Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117360996
D5535.1774814790.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
678 B
Referenced Files
None
Subscribers
None
D5535.1774814790.diff
View Options
diff --git a/src/app/Http/Controllers/API/V4/UsersController.php b/src/app/Http/Controllers/API/V4/UsersController.php
--- a/src/app/Http/Controllers/API/V4/UsersController.php
+++ b/src/app/Http/Controllers/API/V4/UsersController.php
@@ -689,9 +689,8 @@
if ($v->fails()) {
return $v->errors()->toArray()['email'][0];
}
-
// Check if it is one of domains available to the user
- if (!$domain->isPublic() && $user->id != $domain->walletOwner()->id) {
+ if (!$domain->isPublic() && $user->id != $domain->walletOwner()?->id) {
return self::trans('validation.entryexists', ['attribute' => 'domain']);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 29, 8:06 PM (3 d, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18775212
Default Alt Text
D5535.1774814790.diff (678 B)
Attached To
Mode
D5535: Domain validity check
Attached
Detach File
Event Timeline