$show['undeleteoption'] = iif ($threadinfo['isdeleted'] == 1 AND can_moderate($threadinfo['forumid'], 'canremoveposts') AND can_moderate($threadinfo['forumid'], 'canmanagethreads'), true, false);