From de4f3903443a7280383f5db3e33b0d399a7af2cb Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 26 Jan 2023 21:42:06 +0100 Subject: [PATCH] change from org to unit --- Router/RouterInterface.php | 4 ++-- Router/SocketRouter.php | 4 ++-- Router/WebRouter.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Router/RouterInterface.php b/Router/RouterInterface.php index d43babf66..6e5226171 100755 --- a/Router/RouterInterface.php +++ b/Router/RouterInterface.php @@ -75,7 +75,7 @@ interface RouterInterface * @param string $csrf CSRF token * @param int $verb Route verb * @param string $app Application name - * @param int $orgId Organization id + * @param int $unitId Organization id * @param Account $account Account * @param array $data Data * @@ -88,7 +88,7 @@ interface RouterInterface string $csrf = null, int $verb = RouteVerb::GET, string $app = null, - int $orgId = null, + int $unitId = null, Account $account = null, array $data = null ) : array; diff --git a/Router/SocketRouter.php b/Router/SocketRouter.php index fa60fd6ad..f03f480d1 100755 --- a/Router/SocketRouter.php +++ b/Router/SocketRouter.php @@ -114,7 +114,7 @@ final class SocketRouter implements RouterInterface string $csrf = null, int $verb = RouteVerb::GET, string $app = null, - int $orgId = null, + int $unitId = null, Account $account = null, array $data = null ) : array @@ -143,7 +143,7 @@ final class SocketRouter implements RouterInterface } elseif (isset($d['permission']) && !empty($d['permission']) && !($account?->hasPermission( $d['permission']['type'] ?? 0, - $d['permission']['unit'] ?? $orgId, + $d['permission']['unit'] ?? $unitId, $app, $d['permission']['module'] ?? null, $d['permission']['category'] ?? null diff --git a/Router/WebRouter.php b/Router/WebRouter.php index db735d5ff..f44514bb5 100755 --- a/Router/WebRouter.php +++ b/Router/WebRouter.php @@ -116,7 +116,7 @@ final class WebRouter implements RouterInterface string $csrf = null, int $verb = RouteVerb::GET, string $app = null, - int $orgId = null, + int $unitId = null, Account $account = null, array $data = null ) : array @@ -145,7 +145,7 @@ final class WebRouter implements RouterInterface } elseif (isset($d['permission']) && !empty($d['permission']) && !($account?->hasPermission( $d['permission']['type'] ?? 0, - $d['permission']['unit'] ?? $orgId, + $d['permission']['unit'] ?? $unitId, $app, $d['permission']['module'] ?? null, $d['permission']['category'] ?? null