also protect my ns
parent
7b35576cec
commit
32be05ad70
|
@ -86,7 +86,7 @@ class Cleaners
|
|||
if (!isset($this->cleaners[$id])) {
|
||||
throw new Exception(sprintf(__('Unknown cleaner "%s"'), $id));
|
||||
}
|
||||
if ($ns == My::root()) {
|
||||
if (in_array($ns, [My::id(), My::root()]) {
|
||||
throw new Exception(__("Unsintaller can't remove itself"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue