Skip to content
Snippets Groups Projects
Commit 64cafb1f authored by Christopher Smith's avatar Christopher Smith
Browse files

for completeness (& defensive coding), test ['show'] against MSG_PUBLIC in...

for completeness (& defensive coding), test ['show'] against MSG_PUBLIC in case its redefined to a non-zero value
parent 0b2e0a72
No related branches found
No related tags found
No related merge requests found
...@@ -300,7 +300,7 @@ function info_msg_canshow($msg){ ...@@ -300,7 +300,7 @@ function info_msg_canshow($msg){
global $INFO, $auth; global $INFO, $auth;
// is the message public? - everyone and anyone can see it // is the message public? - everyone and anyone can see it
if (empty($msg['show'])) return true; if (empty($msg['show']) || ($msg['show'] == MSG_PUBLIC)) return true;
// restricted msg, but no authentication // restricted msg, but no authentication
if (empty($auth)) return false; if (empty($auth)) return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment