Allow switching/impersonating only to particular users in Symfony2

前端 未结 3 820
礼貌的吻别
礼貌的吻别 2020-12-09 12:51

EXPLANATION

Allowing user to switch to any other user is easy in Symfony2. My question is, how to allow certain user to switch only to certain other

3条回答
  •  清歌不尽
    2020-12-09 13:10

    If you want to impersonate Admin Users in to Regular user there are some examples :)

    https://gist.github.com/1589120

    http://symfony.com/doc/current/book/security.html#impersonating-a-user

提交回复
热议问题