ArkeAi.Mcp.Permission (ArkeAi v0.1.0)

Copy Markdown View Source

Thin wrapper over ArkeAuth.Utils.Permission.

Summary

Functions

Apply a permission's filter and child_only constraints to a query. No-op when permission is nil.

Returns {:ok, permission_map} if the op is allowed, {:error, :forbidden} otherwise. Public is tried first; member fills in if public denies.

Functions

apply_to_query(query, arg2, member)

Apply a permission's filter and child_only constraints to a query. No-op when permission is nil.

check(arke_id, op, project, member)

Returns {:ok, permission_map} if the op is allowed, {:error, :forbidden} otherwise. Public is tried first; member fills in if public denies.