Back to graph Business concept
BusinessModule 07

Permissions & data rules

Visual walkthrough

Who gets through the gate

Who is knocking

no session

The notes table

0 of 4 readable

Maya••••• ••••• ••••••••
Maya••••• •••• •••••
Sam••••• •••••• ••••••
Sam••••• ••••••• •••••

No session, no rows. The gate is the database, not the login page.

Authentication asks who you are; permissions ask what you may touch. Row-level rules in the database are the real wall.

Interactive demo

Pick a sign-in method

Sign-in method
MMayasigned in
  • Dentist Tuesday 9am
  • Pay the gas bill
  • Call mum back
SSamsigned in
  • Renew passport
  • Gift idea: film camera
  • Salary review notes

Row-level rules

The database decides which rows each signed-in person may read.

table · notes6 rows
idownerbodyvisible to
n_01mayaDentist Tuesday 9amMaya only
n_02samRenew passportSam only
n_03mayaPay the gas billMaya only
n_04samGift idea: film cameraSam only
n_05mayaCall mum backMaya only
n_06samSalary review notesSam only

What makes this work

01

Roles

Stored apart from profiles

02

Row rules

Each user sees only their rows

03

Server checks

Never trust the screen

Related concepts