$value) { // If the user has access to the current domain, set that grant. if ($value == $_domain['domain_id']) { $grants['domain_id'][] = $value; } } } }