mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 13:14:45 +02:00
Revert some changes that cause issues with other URLs
This commit is contained in:
parent
125856d92f
commit
9fd8a087b8
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user