mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:40:12 +01:00
id list permission check fix
This commit is contained in:
parent
0b81ba067e
commit
2a5a391c76
@ -89,6 +89,7 @@ class ControllerMessageBulkrestore extends Controller {
|
||||
if(RESTORE_OVER_IMAP == 1) {
|
||||
if($imap_ok) {
|
||||
$x = $this->imap->append(IMAP_RESTORE_FOLDER, $msg);
|
||||
syslog(LOG_INFO, "imap append $id/$piler_id, rc=$x");
|
||||
}
|
||||
else { $x = 0; }
|
||||
}
|
||||
|
@ -75,6 +75,7 @@ class ControllerMessageRestore extends Controller {
|
||||
if(RESTORE_OVER_IMAP == 1) {
|
||||
if($this->model_mail_mail->connect_imap()) {
|
||||
$x = $this->imap->append(IMAP_RESTORE_FOLDER, $msg);
|
||||
syslog(LOG_INFO, "imap append " . $this->data['id'] . "/" . $this->data['piler_id'] . ", rc=$x");
|
||||
$this->model_mail_mail->disconnect_imap();
|
||||
}
|
||||
else {
|
||||
|
@ -820,7 +820,7 @@ class ModelSearchSearch extends Model {
|
||||
if(ENABLE_FOLDER_RESTRICTIONS == 1) {
|
||||
if(in_array($q['folder'], $session->get("folders"))) { array_push($result, $q['id']); }
|
||||
}
|
||||
else {
|
||||
else if(!in_array($q['id'], $result)) {
|
||||
array_push($result, $q['id']);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user