mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-19 23:20:22 +01:00
[ticket/14498] Don't display 'Who is online' members when permission is No
When the user permission 'Can view profiles, memberlist and online list' is set to No (or Never) the user should not be able to see which members are online in the following places, index page, view topic and view forum. Before this change, guests and bots would see the list of members who are online, which doesn't match with the user permission and could create privacy issues where guests or bots could track when a member was online. PHPBB3-14498
This commit is contained in:
parent
b567c6e241
commit
80b72e3d0b
@ -40,8 +40,11 @@
|
||||
<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
|
||||
<p>
|
||||
<!-- EVENT index_body_block_online_prepend -->
|
||||
{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
|
||||
<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
|
||||
{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br />
|
||||
<!-- IF U_VIEWONLINE -->
|
||||
<br />{LOGGED_IN_USER_LIST}
|
||||
<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF -->
|
||||
<!-- ENDIF -->
|
||||
<!-- EVENT index_body_block_online_append -->
|
||||
</p>
|
||||
</div>
|
||||
|
@ -261,9 +261,9 @@
|
||||
|
||||
<!-- INCLUDE jumpbox.html -->
|
||||
|
||||
<!-- IF S_DISPLAY_ONLINE_LIST -->
|
||||
<!-- IF S_DISPLAY_ONLINE_LIST and U_VIEWONLINE -->
|
||||
<div class="stat-block online-list">
|
||||
<h3><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF --></h3>
|
||||
<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
|
||||
<p>{LOGGED_IN_USER_LIST}</p>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
@ -408,9 +408,9 @@
|
||||
<!-- EVENT viewtopic_body_footer_before -->
|
||||
<!-- INCLUDE jumpbox.html -->
|
||||
|
||||
<!-- IF S_DISPLAY_ONLINE_LIST -->
|
||||
<!-- IF S_DISPLAY_ONLINE_LIST and U_VIEWONLINE -->
|
||||
<div class="stat-block online-list">
|
||||
<h3><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a><!-- ELSE -->{L_WHO_IS_ONLINE}<!-- ENDIF --></h3>
|
||||
<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
|
||||
<p>{LOGGED_IN_USER_LIST}</p>
|
||||
</div>
|
||||
<!-- ENDIF -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user