0

Not sure if I'm going about this the "right" way.

In my application, I have recently had the requirement added for a second "type" of user. This means realistically I will need to route this user to a different controller than the primary type.

As a more concrete example:

The primary user of the application will be staff members. They will need to see company wide information.

Now, clients of the company will need to be able to log into the application, and see information specific to their needs (and no more).

Furthermore, there are likely to be more types of user in the future.

What is the "correct" way of designing/implementing this?

4

1 回答 1

1

我认为,如果您控制 TWIG 模板中的用户角色并向他们显示他们可以访问的唯一链接(当然,使用 中的防火墙保护路由security.yml)可能会起作用。

于 2013-07-26T09:45:30.950 回答