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
| Concrete (`GameType`, tuple) | Checks role for that specific game type |
100
+
|`PotentialAccessProbe`| Checks if user holds any game-scoped role |
101
+
|`null`| Does nothing (fail-closed)|
102
102
103
103
`CheckDirectPermissionGrant` already handles all three — it checks for a scoped permission when a resource is present, and for **any** permission claim when no resource is provided.
104
104
105
105
### When to Use Each Pattern
106
106
107
-
| Scenario | Resource to Pass | Example |
108
-
|----------|-----------------|---------|
109
-
| Action on a known resource | The resource (`GameType`, `(GameType, Guid)`, etc.) | Edit button in a Details view |
110
-
| UI gate before resource exists |`PotentialAccessProbe.Instance`| Create button on Index page, GET Create action |
0 commit comments