Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4889 Näkymät

I have a publisher group . They have the permission to read/write/delete for their created records only. i.e ('create_uid','=', user.id).

This is working fine.  But my requirement is they can also read records created by other publisher , i.e.('create_uid','!=', user.id) where only read permission will be applicable.  

But When i write the record rule for that domain , i am able to read/write /delete other's record. is there any other way around or am i doing anything wrong. 


Avatar
Hylkää
Paras vastaus

It's simpler to set the domain for the second record rule as [(1,'=',1)]

You are granting Read access to all records, and Full access to their own records. 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
tammik. 24
3225
0
tammik. 24
1554
0
jouluk. 20
2103
0
kesäk. 17
3142
1
lokak. 15
4011