You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +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:
@ -148,7 +148,6 @@ class AdminHandler extends PFAHandler {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
db_delete('domain_admins', 'username', $this->id, "AND domain = 'ALL'");
|
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() {
|
public function delete() {
|
||||||
if ( ! $this->view() ) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user