pub async fn require_share_manager(
app: &App,
tn_id: TnId,
file_id: &str,
auth: &AuthCtx,
tenant_id_tag: &str,
) -> ClResult<ShareAuthority>Expand description
Authorize share management (create/update/delete share entries, mint/revoke share links).
An ownership/admin operation, strictly stronger than plain Write access — see
[is_share_manager] for who qualifies. Plain FSHR-W grantees and scoped share-link tokens are
excluded, or a delegated link or mere write grant could re-share, grant admin, or emit FSHR to
arbitrary users. They may only list shares, via require_share_reader.