Method Permissions_GetEffectiveForObject()
Effective permission for (object, user). SQLite has no parameterized table
function, so this queries the v_user_permissions VIEW (recursive tree
inheritance + global fallback). System user (id=0) is short-circuited to full
rights in PermissionProviderBase before this runs. Columns match UserPermissionResult.
(The optimized per-object get_user_permissions_for_object() remains a Free
C-function task for the non-.NET / Python surface.)
public string Permissions_GetEffectiveForObject()