Lesson, 17 minutes
Model users, teams and who can do what
Step 1 of 5
Why it matters
Draw users, teams and roles so that permission rules can be checked, not guessed.
"Who is allowed to do what?" sounds like a question about buttons. It is a question about data. An app can only check a rule if the facts behind it are stored.
Teams often start with a role on each user. Then a person joins a second team, or is an admin in one place and a viewer in another, and the model cannot say so. The fix means changing every account that already exists.
Drawing users, teams and the membership between them first makes the rules visible. Each rule can be tested against the tables before a line of code depends on it.
What you will learn
- Start with two tables
- Put a table between
- Hold the role on the link
- Test each rule
Take this lesson with Solo and Team
£6 a seat a month, inc VAT, after 7 days free. You get the whole academy during your free trial.
