The method CanUserDeleteTopic thoroughly checks whether a specified
user who is a member of a specified group can delete a specified topic.
The ID of the topic which a user wants to delete.
Array of groups whose member this user is. Array of groups of the current user is returned by
The user ID. The current user ID is returned by
Returns true if the user has all the permissions required to delete a topic, or false
if (CForumTopic::CanUserDeleteTopic($ID, $USER->GetUserGroupArray(), $USER->GetID()))