Hi there,
I created a plugin, which should delete all seblod articles of the category of "job" that are older than 6 weeks.
When the JCckContentArticle-object tries to delete an article, there is a "Permission denied" message in the log.
But when I call the same script from the backend as superuser, the delete action runs all ak.
The plugin is called by a cronjob once a day.
Is there a way to give the script the rights to delete the article?
Can I manipulate the session of the script? Can I change the user group in a session?
My code:
$content = new JCckContentArticle;
$content->load($myid);
$ops = array(
'check_permissions'=>0,
);
$content->setOptions( $opts );
$content->delete();
Thank you for every hint. I know this might be a non-seblod solution, but maybe there are some seblod-feature which can help me.
Wolfgang