Skip to content
Snippets Groups Projects
Commit 5217a424 authored by deuce's avatar deuce
Browse files

Only display messages you're allowed to read.

parent 9d3c72e0
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,13 @@ if(sub=='mail') { ...@@ -20,8 +20,13 @@ if(sub=='mail') {
} }
else { else {
template.sub=msg_area.grp_list[g].sub_list[s]; template.sub=msg_area.grp_list[g].sub_list[s];
if(!msg_area.grp_list[g].sub_list[s].can_read)
error("You can't read messages in this sub!");
} }
template.idx=msgbase.get_msg_index(false,m);
if(sub=='mail' && tempalte.idx.to!=user.number)
error("You can only read e-mail messages addressed to yourself!");
template.hdr=msgbase.get_msg_header(false,m); template.hdr=msgbase.get_msg_header(false,m);
template.body=msgbase.get_msg_body(false,m,true,true); template.body=msgbase.get_msg_body(false,m,true,true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment