Skip to content

Commit

Permalink
Make logic for auth check for getEmail consistent
Browse files Browse the repository at this point in the history
Make logic for auth check for getEmail consistent with other occurences
within view_service.
  • Loading branch information
tofu-rocketry committed Nov 9, 2020
1 parent a70d9da commit c9cd260
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions htdocs/web_portal/views/service/view_service.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@
</tr>
<tr class="site_table_row_2">
<td class="site_table">Contact E-Mail</td><td class="site_table">
<?php if (!$params['authenticated']) : ?>
PROTECTED - Registration required
<?php endif; ?>
<?php if ($params['authenticated']) : ?>
<?php xecho($se->getEmail()) ?>
<?php endif; ?>
<?php if ($params['authenticated']) {
xecho($se->getEmail());
} else echo('PROTECTED - Registration required'); ?>
</td>
</tr>
<tr class="site_table_row_1">
Expand Down

0 comments on commit c9cd260

Please sign in to comment.