Instead, you could check each product for the user's rights and show or hide the buttons in the index view, but this solution may not perform to your satisfaction.
相反,您可以检查每个拥有用户权限的产品,以及在索引视图中隐藏或显示这个按钮,但是这个解决方案可能无法令您满意。
How to show one and hide the other one when clicking radio buttons?
如何显示一个并隐藏另一个单击单选按钮?
应用推荐