Welcome to the bugtracker of the ISPConfig project. This bugtracker is for ISPConfig 3.x only.
FS#753 - Error in checking permissions
Attached to Project:
ISPConfig 3
Opened by Marius Cramer (Croydon) - Monday, 01 June 2009, 14:00 GMT
Last edited by Till (Till) - Monday, 08 June 2009, 12:28 GMT
Opened by Marius Cramer (Croydon) - Monday, 01 June 2009, 14:00 GMT
Last edited by Till (Till) - Monday, 08 June 2009, 12:28 GMT
|
DetailsThere is an error in checking permissions in the file interface/lib/classes/tform_actions.inc.php
In functions "onPrintForm", "onMailSendForm" and "onShowEdit" it says something like $sql = "SELECT * FROM ".$app->tform->formDef['db_table']." WHERE ".$app->tform->formDef['db_table_idx']." = ".$this->id." AND ".$app->tform->getAuthSQL('u'); (sample from onShowEdit - line 530) I think it should be $sql = "SELECT * FROM ".$app->tform->formDef['db_table']." WHERE ".$app->tform->formDef['db_table_idx']." = ".$this->id." AND ".$app->tform->getAuthSQL('r'); (checking for "read" permission, not for "update") |
This task depends upon
Patch file attached
I can confirm this. If I manually edit the database to remove the u-right for a client so he can no longer change his e-mail domain, the client gets an error if he tries to open (=r I assume) the entry.