Commit 2af16b0b authored by quentusrex's avatar quentusrex
Browse files

This is to try to fix the bug where if a filter is created by an admin, then...

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=
parent b62cfedf
......@@ -54,7 +54,7 @@ class page_action extends tform_actions {
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"];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment