This is to try to fix the bug where if a filter is created by an admin, then the user with the e-mail account can't see the filter.
http://bugtracker.ispconfig.org/index.php?do=details&task_id=267&string=&project=3&search_name=&type[0]=1&sev[0]=&pri[0]=&due[0]=&reported[0]=&cat[0]=&status[0]=open&percent[0]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=
| | |
| | | global $app, $conf; |
| | | |
| | | // Get the parent mail_user record |
| | | $mailuser = $app->db->queryOneRecord("SELECT * FROM mail_user WHERE mailuser_id = '".intval($_REQUEST["mailuser_id"])."' AND ".$app->tform->getAuthSQL('r')); |
| | | $mailuser = $app->db->queryOneRecord("SELECT * FROM mail_user WHERE mailuser_id = '".intval($_REQUEST["mailuser_id"])."'"); |
| | | |
| | | // Check if Domain belongs to user |
| | | if($mailuser["mailuser_id"] != $_POST["mailuser_id"]) $app->tform->errorMessage .= $app->tform->wordbook["no_mailuser_perm"]; |