Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
需求是这样的:视图中显示的字段如果是模型数据的话,在选择的时候最下面会显示create and edit 。现在根据不同用户组,需要manager有创建模型数据的权限,可以显示create and edit,如果是普通user用户组的话,则需要隐藏create and edit。
create and edit
有个朋友说,可以设置widget=‘selection’,但是这样是一刀切,不知道能不能根据不用的用户组决定是否使用widget=‘selection’?
widget=‘selection’
或者,各位,有其他更好的解决方案吗?
你好!看起来您对这段对话很感兴趣,但您还没有一个账号。
厌倦了每次访问都刷到同样的帖子?您注册账号后,您每次返回时都能精准定位到您上次浏览的位置,并可选择接收新回复通知(通过邮件或推送通知)。您还能收藏书签、为帖子顶,向社区成员表达您的欣赏。
有了你的建议,这篇帖子会更精彩哦 💗