From 49b21b9cbe16ed015c091e134ef0104c720dbe8a Mon Sep 17 00:00:00 2001 From: MDW Date: Mon, 29 Jan 2024 14:05:25 +0100 Subject: [PATCH] Fix: Typing hint for hasRights parameter. # Fix: Typing hint for hasRights parameter. Correct typing hint for static tools --- htdocs/user/class/user.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 3274171423e..7b59b1f4375 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -14,6 +14,7 @@ * Copyright (C) 2018-2021 Nicolas ZABOURI * Copyright (C) 2019-2023 Frédéric France * Copyright (C) 2019 Abbes Bahfir + * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -750,7 +751,7 @@ class User extends CommonObject * You can use it like this: if ($user->hasRight('module', 'level11')). * It replaces old syntax: if ($user->rights->module->level1) * - * @param int $module Module of permission to check + * @param string $module Module of permission to check * @param string $permlevel1 Permission level1 (Example: 'read', 'write', 'delete') * @param string $permlevel2 Permission level2 * @return int 1 if user has permission, 0 if not.