It actually depends what you mean by "work for views". The answer is NOT simple but it is rougly this:
- you CANNOT define RLS on a view;
- a view is always executed in the context of the postgres role which defined the view;
- a view will still respect the RLS defined on the underlying table AS LONG AS the role which defined the view does NOT bypass RLS altogether (such roles are superusers and roles that have the BYPASSRLS permission - this is true for the user in the Supabase SQL editor, so if you define views there, they will NOT respect RLS)