Revert "merged branch yktd26/master (PR #1673)"

This reverts commit af70ac8d77, reversing
changes made to c881379fe7.
This commit is contained in:
Fabien Potencier 2011-07-13 12:21:56 +02:00
parent af70ac8d77
commit d80ee41130

View File

@ -12,7 +12,7 @@
namespace Symfony\Component\Security\Acl\Domain;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
use Symfony\Component\Security\Core\Role\RoleInterface;
use Symfony\Component\Security\Core\Role\Role;
/**
* A SecurityIdentity implementation for roles
@ -31,7 +31,7 @@ final class RoleSecurityIdentity implements SecurityIdentityInterface
*/
public function __construct($role)
{
if ($role instanceof RoleInterface) {
if ($role instanceof Role) {
$role = $role->getRole();
}