Commit f1e6dbb5 authored by Ben Hayward's avatar Ben Hayward

Added login check to rewards endpoint for Sentry bug

parent 0b79e64a
Pipeline #174727899 passed with stages
in 8 minutes and 25 seconds
......@@ -22,6 +22,13 @@ class rewards implements Interfaces\Api
public function get($pages)
if (!Core\Session::getLoggedinUser()) {
return Factory::response([
'status' => 'error',
'message' => 'You must be logged in to access this endpoint',
if ($pages[1] === 'entity') {
$entity = Entities\Factory::build($pages[0]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment