Skip to content
Snippets Groups Projects
Commit eebb8830 authored by rickparrish's avatar rickparrish
Browse files

Display error if user can't read requested sub

parent 32658362
Branches
Tags
2 merge requests!463MRC mods by Codefenix (2024-10-20),!223Display error if user can't read requested sub
Pipeline #3400 passed
......@@ -145,6 +145,13 @@ if (typeof http_request.query.notice !== 'undefined') {
writeln(format(strings.notice_box, http_request.query.notice[0]));
}
if (typeof http_request.query.sub !== 'undefined' &&
typeof msg_area.sub[http_request.query.sub[0]] !== 'undefined' &&
!msg_area.sub[http_request.query.sub[0]].can_read
) {
writeln('<div class="alert alert-danger">Sorry, you do not have access to the requested sub.</div>');
}
if (typeof http_request.query.sub !== 'undefined' &&
typeof msg_area.sub[http_request.query.sub[0]] !== 'undefined' &&
typeof http_request.query.thread !== 'undefined' &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment