Skip to content
Snippets Groups Projects
Commit 14ce0ff7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'cant-read-sub' into 'master'

Display error if user can't read requested sub

See merge request !223
parents 11495220 eebb8830
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!223Display error if user can't read requested sub
......@@ -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