Roles and permissions

04 of 06

Projects
The same screen, three roles

Logged in as the contact at Jansen BV. Sees only their own projects, and margin is not customer information.

Projects visible to the Customer role
ProjectStatusRevenueMarginActions
JAJansen BVoffice refitIn progress€42,500hidden for this role
JAJansen BVmeeting roomQuoted€8,900hidden for this role

2 of 6 projects · margin hidden · read only

using ( customer_id = auth.uid() )

The difference is not hidden buttons. That rule in the bottom right sits in the database itself, so a tampered request from the browser gets nothing extra back either.

Bas Voets · Webframer
0:00 / 0:00
Roles and permissions · Demo · Webframer