symfony/demo

Access Denied for route on /admin/post

mehdichaouch opened this issue · 5 comments

Hello,

On a clean install I get for route /admin/post:
image

Any idea?

Merci

Your user does not have the necessary roles to access that page.

@derrabus I just play the migration. The issue is in it?

xabbuh commented

The demo application has two users (john_user and jane_admin). You need to sign in as jane_admin (you are currently logged in as john_user) to be able to access the admin area.

The demo application has two users (john_user and jane_admin). You need to sign in as jane_admin (you are currently logged in as john_user) to be able to access the admin area.

@xabbuh ok thank your answer.

Glad I found this, as I thought I had an issue with the demo app. Thanks @xabbuh
I would have expected the app to have dealt with the issue more gracefully, perhaps by warning that john_user didn't have access.