Quote:
Originally Posted by Acers
its covering only soft delete as of now.. thats cos i added it to delete_complete hook
you can add to editpost_delete_start
to cover for hard deletes also but then add the can_moderate checks also as it might..(i use the word might) happen that the pm might be sent when the actual deletion errors out due to say a permission prob.. highly unlikely but well on my board i give only soft delete permissions so i didn't take the chance.
but yeah inserting above code to editpost_delete_start should cover for both the soft and hard deletes 
|
I'll stick with the way you are doing it then. I only want Admins to be able to hard delete on my site anyway, so we should be all set with your code. And thank you for posting it, sir.
Not to sound ignorant here, but how do I set it so only Admins can hard-delete posts and threads? I don't think I've ever bothered with that before, to tell you the truth, or I don't remember dealing with it, anyway.