Line 406... |
Line 406... |
406 |
$return[] = $this->configuration['screens']['adminScreen'];
|
406 |
$return[] = $this->configuration['screens']['adminScreen'];
|
407 |
$return[] = "<input type='hidden' name='id' value='" . $this->workingOn['id'] . "'>\n";
|
407 |
$return[] = "<input type='hidden' name='id' value='" . $this->workingOn['id'] . "'>\n";
|
408 |
foreach ( $this->configuration['tables']['users']['fields'] as $field => $record ) {
|
408 |
foreach ( $this->configuration['tables']['users']['fields'] as $field => $record ) {
|
409 |
// if this field is restricted and we are not admin, just skip it
|
409 |
// if this field is restricted and we are not admin, just skip it
|
410 |
// also skip if it is our record
|
410 |
// also skip if it is our record
|
411 |
if ( isset( $record['restrict'] ) && ( $this->data['id'] == $this->workingOn['id'] ) )
|
411 |
if ( ! empty( $record['restrict'] ) && ( $this->data['id'] == $this->workingOn['id'] ) )
|
412 |
continue;
|
412 |
continue;
|
413 |
// now process the field
|
413 |
// now process the field
|
414 |
$return[] = $this->makeHTMLField( $field, $record, $this->workingOn[$field] ?? '' );
|
414 |
$return[] = $this->makeHTMLField( $field, $record, $this->workingOn[$field] ?? '' );
|
415 |
}
|
415 |
}
|
416 |
return implode( "\n", $return );
|
416 |
return implode( "\n", $return );
|