This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/SecurityBundle
Fabien Potencier 62cbfdd2e2 bug #23069 [SecurityBundle] Show unique Inherited roles in profile panel (yceruto)
This PR was merged into the 2.7 branch.

Discussion
----------

[SecurityBundle] Show unique Inherited roles in profile panel

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT

When more than one assigned role reaches the same inherited role then it's duplicated in the "Inherited roles" list.

The changes in the test case show the unexpected result before fix it:

```console
There was 1 failure:

1) Symfony\Bundle\SecurityBundle\Tests\DataCollector\SecurityDataCollectorTest::testCollectAuthenticationTokenAndRoles with data set #4 (array('ROLE_ADMIN', 'ROLE_OPERATOR'), array('ROLE_ADMIN', 'ROLE_OPERATOR'), array('ROLE_USER', 'ROLE_ALLOWED_TO_SWITCH'))
Failed asserting that Array &0 (
    0 => 'ROLE_USER'
    1 => 'ROLE_ALLOWED_TO_SWITCH'
    2 => 'ROLE_USER'
) is identical to Array &0 (
    0 => 'ROLE_USER'
    1 => 'ROLE_ALLOWED_TO_SWITCH'
)
```

Commits
-------

7061bfbf3a show unique inherited roles
2017-06-06 07:50:26 -07:00
..
Command Minor fixes 2016-07-30 03:17:26 -04:00
DataCollector show unique inherited roles 2017-06-05 14:17:49 -04:00
DependencyInjection #21809 [SecurityBundle] bugfix: if security provider's name contains upper cases then container didn't compile 2017-03-23 08:57:18 -07:00
EventListener security acl dbal schema: inject the schema instead of the whole container 2013-07-18 14:31:55 +02:00
Resources Merge branch '2.3' into 2.7 2016-02-01 20:38:55 +01:00
Security [2.3] CS And DocBlock Fixes 2014-12-22 16:58:09 +01:00
Templating/Helper Fix the logout path when not using the router 2015-12-17 13:54:40 +01:00
Tests show unique inherited roles 2017-06-05 14:17:49 -04:00
Twig/Extension Use namespaced Twig 2017-06-01 23:44:38 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md Merge branch '2.3' into 2.7 2015-08-11 09:58:34 +02:00
composer.json Use namespaced Twig 2017-06-01 23:44:38 +02:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08:00
phpunit.xml.dist fail when detecting risky tests 2017-04-12 09:39:27 +02:00
README.md add readme files where missing 2016-03-07 11:36:15 +01:00
SecurityBundle.php [Security] Added a REMOTE_USER based listener to security firewalls 2014-09-23 11:54:11 +02:00