Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Not able to get RLS to work on a second table

Hoping someone can help me with row level security here. I have a budget table and a transactions table which are linked together in the data model. My budget table rls is working and is applied to o...
  • shebr's avatar
    shebr
    8 years ago

    Ah, I see, so you should in best practise use the same security filter as in certain cases one will counter act the other. If you disable that security filter does this one work? What are you filtering on the other one?

  • Anonymous's avatar
    Anonymous
    8 years ago

    Thanks for your assistance on this one. I deleted the relationship between the two tables and the RLS works well independently. You touched on what I believe to be the issue though, that is the RLS should use the same security filter or one will counter the other. In addition, if the tables do not need to be related then independent RLS is possible. 

     

    Thanks again!