mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-13 03:43:45 +02:00
Revert some changes that cause issues with other URLs
This commit is contained in:
@@ -92,11 +92,7 @@ class Server extends Model
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (!is_null(Auth::user())) {
|
||||
self::$user = Auth::user();
|
||||
} else {
|
||||
throw new \Exception('Auth::user and Dingo::user cannot both be null.');
|
||||
}
|
||||
self::$user = Auth::user();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -70,11 +70,7 @@ class Subuser extends Model
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
if (!is_null(Auth::user())) {
|
||||
self::$user = Auth::user();
|
||||
} else {
|
||||
throw new \Exception('Auth::user and Dingo::user cannot both be null.');
|
||||
}
|
||||
self::$user = Auth::user();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user