Added data officer role

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2019-07-14 21:58:18 +02:00
parent 0c830b1276
commit ea3b0c372b
23 changed files with 163 additions and 18 deletions

View File

@ -33,10 +33,16 @@ class ControllerMessageBulkremove extends Controller {
die("go away");
}
foreach($idlist as $id) {
$db->query("INSERT INTO " . TABLE_DELETED . " (id, email, reason, date1) VALUES(?,?,?,?)", [$id, $this->data['username'], $this->request->post['reason'], NOW]);
if(NEED_TO_APPROVE_DELETE) {
$deleted = 0;
} else {
$deleted = 1;
}
if(AUTHORIZE_DELETE) {
foreach($idlist as $id) {
$db->query("INSERT INTO " . TABLE_DELETED . " (id, email, reason, date1, deleted) VALUES(?,?,?,?,?)", [$id, $this->data['username'], $this->request->post['reason'], NOW, $deleted]);
if(NEED_TO_APPROVE_DELETE) {
AUDIT(ACTION_MARK_MESSAGE_FOR_REMOVAL, '', '', $id, '');
syslog(LOG_INFO, $this->data['username'] . " marked message for removal: $id");
} else {