Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 695e64f4 authored by rswindell's avatar rswindell

Don't allow viewing of deleted messages.

parent 9a4f8527
......@@ -27,6 +27,8 @@ if(msgbase.open!=undefined && msgbase.open()==false) {
var hdr=msgbase.get_msg_header(false,m);
if(hdr==null)
error(msgbase.last_error);
if(hdr.attr&MSG_DELETE)
error("Deleted message");
if((!(system.settings & SYS_USRVDELM)) || (user.security.level >= 90 && (!(system.settings & SYS_SYSVDELM))) ) {
if(hdr.attr & MSG_DELETE)
error("Message has been deleted");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment