MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / storage_label_for_user_id

Function storage_label_for_user_id

paperflow/roles.py:67–69  ·  view source on GitHub ↗

Return the role-name-based filesystem label for a user id.

(user_id: str, *, project_root: Optional[Path] = None)

Source from the content-addressed store, hash-verified

65 for role_name, role_info in roles.items():
66 if not isinstance(role_info, dict):
67 continue
68 if str(role_info.get("user_id") or "").strip() == cleaned_user_id:
69 cleaned_role_name = str(role_name or "").strip()
70 return cleaned_role_name or cleaned_user_id
71 return cleaned_user_id
72

Callers 1

apply_user_scopeFunction · 0.70

Calls 2

slugFunction · 0.85
role_name_for_user_idFunction · 0.70

Tested by

no test coverage detected