changed role names to XXXX instead of ROLE_XXXX
This commit is contained in:
@@ -63,6 +63,6 @@ class Admin extends BaseAdmin implements UserInterface
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getRoles() {
|
||||
return array(new Role('ROLE_ADMIN'));
|
||||
return array(new Role('ADMIN'));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,6 +164,6 @@ class Customer extends BaseCustomer implements UserInterface
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getRoles() {
|
||||
return array(new Role('ROLE_CUSTOMER'));
|
||||
return array(new Role('CUSTOMER'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user