Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
c1adbdaf
Commit
c1adbdaf
authored
1 year ago
by
Eric Oulashin
Browse files
Options
Downloads
Patches
Plain Diff
DD Message Area Chooser: Fix for a copy & paste error - Added the canViewDeletedMsgs() function
parent
b36e2952
No related branches found
No related tags found
2 merge requests
!463
MRC mods by Codefenix (2024-10-20)
,
!360
DD Message Area Chooser: Fix for a copy & paste error - Added the canViewDeletedMsgs() function
Pipeline
#4868
passed
1 year ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/DDAreaChoosers/DDMsgAreaChooser.js
+8
-0
8 additions, 0 deletions
xtrn/DDAreaChoosers/DDMsgAreaChooser.js
with
8 additions
and
0 deletions
xtrn/DDAreaChoosers/DDMsgAreaChooser.js
+
8
−
0
View file @
c1adbdaf
...
...
@@ -3030,6 +3030,14 @@ function isReadableMsgHdr(pMsgHdrOrIdx, pSubBoardCode)
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.
//
// Parameters:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment