Is it possible to change the attributes of form view for specific user groups in form view tag, like in form tag, readonly="{('user_group','=','some_group')}">
是否可以更改表单视图标记中特定用户组的表单视图属性,例如在表单标记中,readonly =“{('user_group','='','some_group')}”>
I need to make a form view read-only for s specific user group but only from front-end. Records are updated from code by that user belonging to that specific user group from back-end. and if i disable updating the records of that model by that user group in my security file, that user is not able to modify the records even from back-end.
我需要为特定用户组创建一个只读的表单视图,但只能从前端创建。记录由来自后端的属于该特定用户组的用户从代码更新。如果我禁用我的安全文件中的该用户组更新该模型的记录,该用户甚至无法从后端修改记录。
1 个解决方案
#1
0
Best way to do this is by defining a new group that have only read access on that model and add to that user you will save a lot of typing and a lot of your time.
最好的方法是定义一个只对该模型具有读访问权限的新组,并添加到该用户,这将节省大量的输入和大量的时间。
Because what you really asking is to remove edit write for a specific user.
因为您真正要求的是删除特定用户的编辑写入。
#1
0
Best way to do this is by defining a new group that have only read access on that model and add to that user you will save a lot of typing and a lot of your time.
最好的方法是定义一个只对该模型具有读访问权限的新组,并添加到该用户,这将节省大量的输入和大量的时间。
Because what you really asking is to remove edit write for a specific user.
因为您真正要求的是删除特定用户的编辑写入。