Skip to content
Snippets Groups Projects
Commit 3c96509d authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

disabled get-attendees-by-course till there is a use case and privacy issues are clarified

parent 66856ade
No related branches found
No related tags found
No related merge requests found
Pipeline #199466 passed
...@@ -5,12 +5,12 @@ declare(strict_types=1); ...@@ -5,12 +5,12 @@ declare(strict_types=1);
namespace Dbp\Relay\BaseCourseBundle\Entity; namespace Dbp\Relay\BaseCourseBundle\Entity;
use ApiPlatform\Core\Annotation\ApiProperty; use ApiPlatform\Core\Annotation\ApiProperty;
use ApiPlatform\Core\Annotation\ApiResource;
use Dbp\Relay\BaseCourseBundle\Controller\GetAttendeesByCourse; use Dbp\Relay\BaseCourseBundle\Controller\GetAttendeesByCourse;
use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Serializer\Annotation\Groups;
/** /**
* @ApiResource( * Currently disabled:
* ApiResource(
* collectionOperations={ * collectionOperations={
* "get" = { * "get" = {
* "path" = "/course_attendees", * "path" = "/course_attendees",
...@@ -57,7 +57,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -57,7 +57,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "groups" = {"CourseAttendee:output"}, * "groups" = {"CourseAttendee:output"},
* "jsonld_embed_context" = true, * "jsonld_embed_context" = true,
* } * }
* ) * ).
*/ */
class CourseAttendee class CourseAttendee
{ {
......
...@@ -23,10 +23,10 @@ class ApiTest extends ApiTestCase ...@@ -23,10 +23,10 @@ class ApiTest extends ApiTestCase
$this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); $this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode());
} }
public function testAttendeesByCourseNoAuth() // public function testAttendeesByCourseNoAuth()
{ // {
$client = self::createClient(); // $client = self::createClient();
$response = $client->request('GET', '/base/courses/123/attendees'); // $response = $client->request('GET', '/base/courses/123/attendees');
$this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); // $this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode());
} // }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment