09-03-2018, 07:03 AM
Thank you Brandin,
I created the following sample code
If I browse this file by logging in as admin from browser than the permission is changed successfully. But if I put it into cron than the permission is not changed. May be that has to do with the init.php which requires login. How can I successfully implement this in cron.
I created the following sample code
PHP Code:
<?php require_once '../../users/init.php'; ?>
<?php
$remove =[3];
removePermission($remove, 2);
// $add = [3];
// addPermission($add, 2,'user'