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

Merge branch 'dd_msg_area_chooser_canViewDeletedMsgs' into 'master'

DD Message Area Chooser: Fix for a copy & paste error - Added the canViewDeletedMsgs() function

See merge request !360
parents b36e2952 c1adbdaf
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!360DD Message Area Chooser: Fix for a copy & paste error - Added the canViewDeletedMsgs() function
...@@ -3030,6 +3030,14 @@ function isReadableMsgHdr(pMsgHdrOrIdx, pSubBoardCode) ...@@ -3030,6 +3030,14 @@ function isReadableMsgHdr(pMsgHdrOrIdx, pSubBoardCode)
return true; return true;
} }
// Returns whether the logged-in user can view deleted messages.
function canViewDeletedMsgs()
{
var usersVDM = ((system.settings & SYS_USRVDELM) == SYS_USRVDELM);
var sysopVDM = ((system.settings & SYS_SYSVDELM) == SYS_SYSVDELM);
return (usersVDM || (user.is_sysop && sysopVDM));
}
// Returns the number of readable messages in a sub-board. // Returns the number of readable messages in a sub-board.
// //
// Parameters: // Parameters:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment