1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-27 20:32:28 +01:00

Revert some changes that cause issues with other URLs

This commit is contained in:
Dane Everitt 2016-10-20 16:48:37 -04:00
parent 125856d92f
commit 9fd8a087b8
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 2 additions and 10 deletions

View File

@ -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();
}
/**

View File

@ -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();
}
/**