- # make sure they've filled out the tiny user agreement
- $tiny_agreement = db_get_value('people', 'tiny_agreement', 'where id=%i', $client_id);
- if($tiny_agreement < 30 || $tiny_agreement > 999) {
- return './tiny_agreement';
+ # make sure the client (not the contractor) has filled out the tiny agreement
+ if(!$ever_was_contractor) {
+ $tiny_agreement = db_get_value('people', 'tiny_agreement', 'where id=%i', $client_id);
+ if($tiny_agreement < 30 || $tiny_agreement > 999) {
+ return './tiny_agreement';
+ }