lib/service/accountservice.php 1 location
|
@@ 95-101 (lines=7) @@
|
| 92 |
|
/** |
| 93 |
|
* @param int $accountId |
| 94 |
|
*/ |
| 95 |
|
public function delete($currentUserId, $accountId) { |
| 96 |
|
if ((int)$accountId === UnifiedAccount::ID) { |
| 97 |
|
return; |
| 98 |
|
} |
| 99 |
|
$mailAccount = $this->mapper->find($currentUserId, $accountId); |
| 100 |
|
$this->mapper->delete($mailAccount); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
/** |
| 104 |
|
* @param $newAccount |
lib/service/aliasesservice.php 1 location
|
@@ 74-80 (lines=7) @@
|
| 71 |
|
/** |
| 72 |
|
* @param int $accountId |
| 73 |
|
*/ |
| 74 |
|
public function delete($currentUserId, $accountId) { |
| 75 |
|
if ((int)$accountId === UnifiedAccount::ID) { |
| 76 |
|
return; |
| 77 |
|
} |
| 78 |
|
$mailAccount = $this->mapper->find($currentUserId, $accountId); |
| 79 |
|
$this->mapper->delete($mailAccount); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
/** |
| 83 |
|
* @param $newAccount |