0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

global PALANG

This commit is contained in:
David Goodwin 2017-06-25 13:28:43 +01:00
parent 64f1593818
commit 8508b8e119

View File

@ -187,6 +187,8 @@ class DomainHandler extends PFAHandler {
* @return true on success false on failure
*/
public function delete() {
global $PALANG;
# TODO: check for _can_delete instead
if (! $this->is_superadmin) {
$this->errormsg[] = Config::Lang_f('no_delete_permissions', $this->id);