What it does
A role is granted, and it is enforced, if (role !== "employee") refuse(), and the test harness has never once signed in AS one.
How it helps you
Each role gets tested signed in as that role, so permissions work for the people who hold them.
Tested against itself
15 deliberate breaks, all caught
We change this check on purpose and watch its test fail. Each dot is one of those changes.
Details
| Category | Security |
|---|---|
| Also filed under | Test quality |
| Checks in this category | 119 |
| ISO/IEC 25010 | Security |
| CWE | CWE-285 |
| Breaks caught | 15 |