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

View file

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