mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 15:53:45 +02:00
Add initial basic API changes
New route is `/api/me`
This commit is contained in:
@@ -70,7 +70,11 @@ class Subuser extends Model
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
self::$user = Auth::user();
|
||||
if (!is_null(Auth::user())) {
|
||||
self::$user = Auth::user();
|
||||
} else {
|
||||
throw new \Exception('Auth::user and Dingo::user cannot both be null.');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user