From d245313d1cc537437080513f3b61cba6f9f110d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 6 Feb 2023 16:28:43 +0100 Subject: [PATCH] fix undefined method --- htdocs/cron/card.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'); /*