Skip to content

Commit

Permalink
redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannon committed Mar 25, 2024
1 parent c73d7a3 commit 9c07f7b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions view_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,15 @@
if ($single_user == 'N' && !empty($createby_fullname)) {
echo '<div class="row"><div class="col-3">' . translate('Created by') . "</div>\n";
echo '<div class="col-9">';
if ($is_private && !access_is_enabled()) {
echo '[' . translate('Private') . ']';
} else if ($is_confidential && !access_is_enabled()) {
echo '[' . translate('Confidential') . ']';

if ( ! access_is_enabled() ) {
if ( $is_private ) {
echo '[' . translate ( 'Private' ) . ']';
} elseif ( $is_confidential ) {
echo '[' . translate ( 'Confidential' ) . ']';
}
} else {
if (access_is_enabled()) {
$can_email = access_user_calendar('email', $create_by);
$can_email = access_user_calendar ( 'email', $create_by );
}
$pubAccStr = ($row[0] == '__public__') ? translate('Public Access') : $createby_fullname;
if (strlen($email_addr) && $can_email != 'N') {
Expand Down

0 comments on commit 9c07f7b

Please sign in to comment.