Skip to content
Snippets Groups Projects
Commit 483ba3c6 authored by echicken's avatar echicken
Browse files

Use msg_area.grp_list[grp].sub_list[sub].is_operator to verify that user can delete messages.

parent 5e959e28
No related branches found
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ function showMessage(header) {
function deleteMessage(header) {
var ret = false;
if(!mail && user.number == 1) {
if(!mail && msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].is_operator) {
if(prompt("Delete message #" + header.number)) {
msgBase.open();
msgBase.remove_msg(header.number);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment