There isn't a pattern that I know of. One way of implementing what you want would be to give users roles dependant upon what price tier they have chosen and to then have role checking on specific features/views. Almost like a form of access control list, which is controlled by their purchased package.
发布评论
评论(1)
据我所知,没有任何模式。 实现您想要的方法的一种方法是根据用户选择的价格等级为用户提供角色,然后对特定功能/视图进行角色检查。 几乎就像一种访问控制列表,由他们购买的软件包控制。
There isn't a pattern that I know of. One way of implementing what you want would be to give users roles dependant upon what price tier they have chosen and to then have role checking on specific features/views. Almost like a form of access control list, which is controlled by their purchased package.