From 3a47088ae792c93b6010d51fd3361a9f8cb55108 Mon Sep 17 00:00:00 2001 From: Vadim Bondar Date: Fri, 4 Oct 2019 17:32:32 +0300 Subject: [PATCH] fix permission --- models/rbacDB/AbstractItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/rbacDB/AbstractItem.php b/models/rbacDB/AbstractItem.php index fae8ae59..34882abe 100644 --- a/models/rbacDB/AbstractItem.php +++ b/models/rbacDB/AbstractItem.php @@ -265,7 +265,7 @@ public static function beforeAddChildren($parentName, $childrenNames, $throwExce $event->trigger(get_called_class(), self::EVENT_BEFORE_ADD_CHILDREN, $event); } - public static function beforeRemoveChildren($parentName, $childrenNames) + public static function beforeRemoveChildren($parentName, $childrenNames,$throwException = false) { $event = new AbstractItemEvent(compact('parentName', 'childrenNames', 'throwException')); $event->trigger(get_called_class(), self::EVENT_BEFORE_REMOVE_CHILDREN, $event);