contract_checkcred
((ct->ct_cuid == euid) || (!locked && contract_checkcred(ct, cr)));
contract_checkcred(ct, cr);