1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-29 22:41:11 +03:00

AdminHandler:

- clear some TODO notes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1583 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz
2013-11-16 19:02:44 +00:00
parent 20d1ffcafc
commit 79274dcedf

View File

@ -148,7 +148,6 @@ class AdminHandler extends PFAHandler {
}
} else {
db_delete('domain_admins', 'username', $this->id, "AND domain = 'ALL'");
# TODO: check for errors (Note: we are blindly deleting the ALL domain for this admin, maybe he wasn't superadmin before so result count might be 0)
}
}
@ -172,7 +171,7 @@ class AdminHandler extends PFAHandler {
*/
public function delete() {
if ( ! $this->view() ) {
$this->errormsg[] = 'An admin with that name does not exist.'; # TODO: make translatable
$this->errormsg[] = Config::Lang($this->msg['error_does_not_exist']);
return false;
}