Ludachris
Well-known member
We have some forums where only certain usergroups are allowed to post threads. The problem is, some users are removed from those usergroups but their threads remain live in those forums. I'd like to figure out a way to soft delete those threads when the thread author is no longer in a usergroup with permissions to post new threads in a given forum. I'm not sure the best way to go about achieving this.
My first thought is to create a cron job that runs nightly and checks all the threads in specified nodes and does a check to see if the thread starter is in a usergroup array. If not, the thread gets soft deleted. Is there a better way to do it?
My first thought is to create a cron job that runs nightly and checks all the threads in specified nodes and does a check to see if the thread starter is in a usergroup array. If not, the thread gets soft deleted. Is there a better way to do it?