ended7월 22일· 1 sources
Stop Scattering if (role === 'admin') Everywhere: A 3-Level Permission Tree for Page & Section Access
Why it matters
Most apps start their access control with something like this: function canEditReportsSummary(role) { return ['EDITOR', 'ADMIN'].includes(role); } It works, right up until you have a dozen pages, each...
1
Sources
+0
24h
—
Growth
5d
Active