我可以添加一条记录规则来限制员工的写入权限,以便他只能修改他的信息吗?我对此进行了测试,但它不起作用:
在访问控制列表中,我添加了对 Employee 对象的写访问权限。
*/Add a new rule to the Employee object RULE1 :[('user_id', '=', user.id)] --read and write checked
*/Add a new rule RULE2 to the Employee object:[('user_id', '!=', user.id)] --read is checked