fix undefined method
This commit is contained in:
parent
fe35f5ec28
commit
d245313d1c
@ -2,7 +2,7 @@
|
|||||||
/* Copyright (C) 2012 Nicolas Villa aka Boyquotes http://informetic.fr
|
/* Copyright (C) 2012 Nicolas Villa aka Boyquotes http://informetic.fr
|
||||||
* Copyright (C) 2013 Florian Henry <florian.henry@open-concpt.pro>
|
* Copyright (C) 2013 Florian Henry <florian.henry@open-concpt.pro>
|
||||||
* Copyright (C) 2013-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2013-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2023 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* 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');
|
$securitykey = GETPOST('securitykey', 'alpha');
|
||||||
|
|
||||||
if (!$user->hasRights('cron', 'create')) {
|
if (!$user->hasRight('cron', 'create')) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
$permissiontoadd = $user->hasRights('cron', 'create');
|
$permissiontoadd = $user->hasRight('cron', 'create');
|
||||||
$permissiontoexecute = $user->hasRights('cron', 'execute');
|
$permissiontoexecute = $user->hasRight('cron', 'execute');
|
||||||
$permissiontodelete = $user->hasRights('cron', 'delete');
|
$permissiontodelete = $user->hasRight('cron', 'delete');
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user