Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

{{ render(path('')) }} on twig template jumps the access_controll security ROLE #8336

Copy link
Copy link
Closed
@Federico-Cini

Description

@Federico-Cini
Issue body actions

Symfony 2.3.1
PHP Version 5.3.15
Apache Server

i will explain the scenario

FIRST
y have tree routes.
1
users:
path: /users

2
users_table:
path: /users/table

3
users_new
path: /users/new

and a access_control for those on the security.yml file

/users/new: ROLE_SUPER_ADMIN
/users: ROLE_ADMIN
/users/table: ROLE_ADMIN

SECOND

when i go to /users logedin like ROLE_ADMIN

it renders a twig template that contains the next two routes.

// file : users.html.twig

{{ render(path('users_table')) }}
{{ render(path('users_new')) }}

and the final render show the users_new template, but this is ROLE_SUPER_ADMIN SECURED

it could be fixed adding security to twig template or the controller, but i dont think that is a good solution for that.

isn't it a bug?

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.