You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-29 22:41:11 +03:00
AdminHandler.php:
- implement delete() (untested!) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1456 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -179,11 +179,8 @@ class AdminHandler extends PFAHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->errormsg[] = '*** Admin deletion not implemented yet ***';
|
||||
return false; # XXX function aborts here until TODO below is implemented! XXX
|
||||
$result = db_delete('domain_admins', $this->id_field, $this->id); # TODO: check for errors?
|
||||
|
||||
# TODO: delete from domain_admins before deleting the admin
|
||||
# TODO: move the needed code from delete.php here
|
||||
$result = db_delete($this->db_table, $this->id_field, $this->id);
|
||||
if ( $result == 1 ) {
|
||||
list(/*NULL*/,$domain) = explode('@', $this->id);
|
||||
|
Reference in New Issue
Block a user