Query authenticated table

Options

In a function I authenticate the user through the table restaurant_owners, and inside the body I query another authenticated table that is restaurants, does it leads to potential problems? On test it works, but I believe there is something wrong as I didn't authenticate on the second table