Revert some changes that cause issues with other URLs
This commit is contained in:
parent
125856d92f
commit
9fd8a087b8
2 changed files with 2 additions and 10 deletions
|
@ -92,11 +92,7 @@ class Server extends Model
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
if (!is_null(Auth::user())) {
|
self::$user = Auth::user();
|
||||||
self::$user = Auth::user();
|
|
||||||
} else {
|
|
||||||
throw new \Exception('Auth::user and Dingo::user cannot both be null.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -70,11 +70,7 @@ class Subuser extends Model
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
if (!is_null(Auth::user())) {
|
self::$user = Auth::user();
|
||||||
self::$user = Auth::user();
|
|
||||||
} else {
|
|
||||||
throw new \Exception('Auth::user and Dingo::user cannot both be null.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue