Update auth table names to new standard, fix model association config for acl #730
This commit is contained in:
parent
876722ebe7
commit
2a0ca3b9ea
4 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
catalyst_auth:
|
catalyst_auth:
|
||||||
main:
|
main:
|
||||||
user_entity: "Catalyst\\UserBundle\\Entity\\User"
|
user_entity: "App\\Entity\\User"
|
||||||
acl_data:
|
acl_data:
|
||||||
- id: dashboard
|
- id: dashboard
|
||||||
label: Dashboard Access
|
label: Dashboard Access
|
||||||
|
|
@ -591,7 +591,7 @@ catalyst_auth:
|
||||||
label: Delete
|
label: Delete
|
||||||
|
|
||||||
api:
|
api:
|
||||||
user_entity: "App\\Entity\\ApiUser"
|
user_entity: "Catalyst\\ApiBundle\\Entity\\User"
|
||||||
acl_data:
|
acl_data:
|
||||||
- id: api_test
|
- id: api_test
|
||||||
label: Test
|
label: Test
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,7 @@ security:
|
||||||
lifetime: 604800
|
lifetime: 604800
|
||||||
path: /
|
path: /
|
||||||
user_checker: Catalyst\AuthBundle\Service\UserChecker
|
user_checker: Catalyst\AuthBundle\Service\UserChecker
|
||||||
|
switch_user: { role: ROLE_SUPER_ADMIN }
|
||||||
|
|
||||||
# activate different ways to authenticate
|
# activate different ways to authenticate
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Entity
|
* @ORM\Entity
|
||||||
* @ORM\Table(name="role")
|
* @ORM\Table(name="user_role")
|
||||||
* @UniqueEntity("id")
|
* @UniqueEntity("id")
|
||||||
* @UniqueEntity("name")
|
* @UniqueEntity("name")
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ use Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\Entity
|
* @ORM\Entity
|
||||||
* @ORM\Table(name="user")
|
* @ORM\Table(name="user_user")
|
||||||
* @UniqueEntity("username")
|
* @UniqueEntity("username")
|
||||||
* @UniqueEntity("email")
|
* @UniqueEntity("email")
|
||||||
*/
|
*/
|
||||||
|
|
@ -39,7 +39,7 @@ class User extends BaseUser implements Serializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\ManyToMany(targetEntity="Role", inversedBy="users")
|
* @ORM\ManyToMany(targetEntity="Role", inversedBy="users")
|
||||||
* @ORM\JoinTable(name="user_role")
|
* @ORM\JoinTable(name="user_user_role")
|
||||||
*/
|
*/
|
||||||
protected $roles;
|
protected $roles;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue