From 34c83e059de15badf10ff626d17b249bda9bb59a Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Sat, 11 Feb 2017 10:36:17 -0600 Subject: [PATCH] Changed User\Driver->authorize to return a type-hint of bool --- vendor/JKingWeb/NewsSync/User/Driver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/JKingWeb/NewsSync/User/Driver.php b/vendor/JKingWeb/NewsSync/User/Driver.php index 2e06f7a1..245a395a 100644 --- a/vendor/JKingWeb/NewsSync/User/Driver.php +++ b/vendor/JKingWeb/NewsSync/User/Driver.php @@ -6,18 +6,18 @@ Interface Driver { const FUNC_NOT_IMPLEMENTED = 0; const FUNC_INTERNAL = 1; const FUNC_EXTERNAL = 2; - + const RIGHTS_NONE = 0; const RIGHTS_DOMAIN_MANAGER = 25; const RIGHTS_DOMAIN_ADMIN = 50; const RIGHTS_GLOBAL_MANAGER = 75; const RIGHTS_GLOBAL_ADMIN = 100; - + static function create(\JKingWeb\NewsSync\RuntimeData $data): Driver; static function driverName(): string; function driverFunctions(string $function = null); function auth(string $user, string $password): bool; - function authorize(string $affectedUser, string $action); + function authorize(string $affectedUser, string $action): bool; function userExists(string $user): bool; function userAdd(string $user, string $password = null): bool; function userRemove(string $user): bool;