diff --git a/htdocs/cron/card.php b/htdocs/cron/card.php index 983c02f244a..31b7f52899b 100644 --- a/htdocs/cron/card.php +++ b/htdocs/cron/card.php @@ -2,7 +2,7 @@ /* Copyright (C) 2012 Nicolas Villa aka Boyquotes http://informetic.fr * Copyright (C) 2013 Florian Henry * Copyright (C) 2013-2016 Laurent Destailleur - * Copyright (C) 2018-2021 Frédéric France + * Copyright (C) 2018-2023 Frédéric France * * 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 @@ -46,13 +46,13 @@ $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); $securitykey = GETPOST('securitykey', 'alpha'); -if (!$user->hasRights('cron', 'create')) { +if (!$user->hasRight('cron', 'create')) { accessforbidden(); } -$permissiontoadd = $user->hasRights('cron', 'create'); -$permissiontoexecute = $user->hasRights('cron', 'execute'); -$permissiontodelete = $user->hasRights('cron', 'delete'); +$permissiontoadd = $user->hasRight('cron', 'create'); +$permissiontoexecute = $user->hasRight('cron', 'execute'); +$permissiontodelete = $user->hasRight('cron', 'delete'); /*