We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125856d commit 9fd8a08Copy full SHA for 9fd8a08
app/Models/Server.php
@@ -92,11 +92,7 @@ class Server extends Model
92
*/
93
public function __construct()
94
{
95
- if (!is_null(Auth::user())) {
96
- self::$user = Auth::user();
97
- } else {
98
- throw new \Exception('Auth::user and Dingo::user cannot both be null.');
99
- }
+ self::$user = Auth::user();
100
}
101
102
/**
app/Models/Subuser.php
@@ -70,11 +70,7 @@ class Subuser extends Model
70
71
72
73
74
75
76
77
78
79
80
0 commit comments