Node and user API routes implemented.

More attempts at the logic for API permissions, most likely will need
continued tweaking in the future, but base is there.
This commit is contained in:
Dane Everitt
2017-04-09 15:31:10 -04:00
parent f24b238e30
commit 820d2bf172
15 changed files with 447 additions and 26 deletions

View File

@@ -114,7 +114,7 @@ class UserRepository
*
* @param int $id
* @param array $data
* @return bool
* @return \Pterodactyl\Models\User
*
* @throws \Pterodactyl\Exceptions\DisplayValidationException
*/
@@ -147,9 +147,9 @@ class UserRepository
unset($data['password']);
}
$user->fill($data);
$user->fill($data)->save();;
return $user->save();
return $user;
}
/**