You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made adjustments to fit copied work into dev branch
Ported non-compatible elements, Now all tests passing apart from some
specific permission scenario tests which are probably correctly failing.
Updates some tests to better avoid messing environment state.
Copy file name to clipboardExpand all lines: dev/docs/permission-scenario-testing.md
+1-182Lines changed: 1 addition & 182 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,16 @@ Test cases are written ability abstract, since all abilities should act the same
6
6
7
7
Tests are categorised by the most specific element involved in the scenario, where the below list is most specific to least:
8
8
9
-
- User entity permissions.
10
9
- Role entity permissions.
11
10
- Fallback entity permissions.
12
11
- Role permissions.
13
12
14
-
- TODO - Test fallback in the context of the above.
15
-
16
13
## General Permission Logical Rules
17
14
18
15
The below are some general rules we follow to standardise the behaviour of permissions in the platform:
19
16
20
17
- Most specific permission application (as above) take priority and can deny less specific permissions.
21
-
- Parent user/role entity permissions that may be inherited, are considered to essentially be applied on the item they are inherited to unless a lower level has its own permission rule for an already specific role/user.
18
+
- Parent role entity permissions that may be inherited, are considered to essentially be applied on the item they are inherited to unless a lower level has its own permission rule for an already specific role.
22
19
- Where both grant and deny exist at the same specificity, we side towards grant.
23
20
24
21
## Cases
@@ -241,181 +238,3 @@ User denied page permission.
241
238
- User has Role A & B.
242
239
243
240
User denied page permission.
244
-
245
-
---
246
-
247
-
### Entity User Permissions
248
-
249
-
These are tests related to entity-level user-specific permission overrides.
0 commit comments