Commit e38d8acd authored by Thomas Citharel's avatar Thomas Citharel 🏃🏻
Browse files

Merge branch 'fix-stats-public-access' into 'master'

Fix Stats route public access

See merge request !27
parents 3ee3fb2d 5d1ae7f0
Pipeline #13038 passed with stage
in 17 minutes and 16 seconds
......@@ -47,4 +47,5 @@ security:
- { path: ^/users/manage, role: ROLE_ADMIN }
- { path: ^/share, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/picture/, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/stats, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: ROLE_USER }
......@@ -9,7 +9,6 @@ class StatsControllerTest extends StrutTestCase
{
public function testStats()
{
$this->logInAs('admin');
$client = $this->getClient();
$client->request('GET', '/stats');
......@@ -23,6 +22,8 @@ class StatsControllerTest extends StrutTestCase
/*
* In order to test cache is active, let's delete an entry
*/
$this->logInAs('admin');
$contentId = $client->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository('Strut\StrutBundle\Entity\Presentation')
......
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