role checking logic
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-08.)
role checking logic has 16 facts recorded in Dontopedia across 3 references, with 3 live disagreements.
Mostly:rdf:type(3), condition(2), uses function(1)
Maturity scale
raw canonical shape-checked rule-derived certifiedInbound mentions (2)
Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.
describesDescribes(1)
- Method Comments
ex:method-comments
usesLogicUses Logic(1)
- Check Roles Function
ex:check-roles-function
Other facts (14)
The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.
| Predicate | Value | Ref |
|---|---|---|
| Rdf:type | Role Check Logic | [1] |
| Rdf:type | Conditional Logic | [2] |
| Rdf:type | Authorization Check | [3] |
| Condition | user_role not in roles | [2] |
| Condition | role-absence | [3] |
| Uses Function | any | [1] |
| Checks Membership | Role Membership | [1] |
| Uses Python Builtin | Any Function | [1] |
| Iteration Pattern | Generator Expression | [1] |
| Uses Generator Expression | true | [1] |
| Generator Expression Syntax | any(role in user.roles for role in required_roles) | [1] |
| Action | raise HTTPException | [2] |
| Triggers | Error Response | [3] |
| Allows | Wrapped Function Execution | [3] |
Timeline
Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.
References (3)
ctx:claims/beam/5b48a03d-4226-4f3e-a751-c4beb35e27f6ctx:claims/beam/645058b8-3382-4279-9801-b5f71c6f23d8- full textbeam-chunktext/plain1 KB
doc:beam/645058b8-3382-4279-9801-b5f71c6f23d8Show excerpt
Here's how you can implement the above steps: ```python from fastapi import FastAPI, Depends, HTTPException from fastapi.security import OAuth2PasswordBearer import random app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="to…
ctx:claims/beam/a41467bd-56e6-4bec-9b96-129ed7b8629e- full textbeam-chunktext/plain1 KB
doc:beam/a41467bd-56e6-4bec-9b96-129ed7b8629eShow excerpt
SENSITIVE_SCORE_ACCESS_ROLE = KeycloakRole('sensitive-score-access') # Decorator to check for specific role def require_role(role): def decorator(f): def wrapper(*args, **kwargs): if not keycloak.has_role(role): …
See also
Keep researching
Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.