To answer my own question, I copied in a permission that only teachers and above have as follows:
if ($fulllink and $cm->cache->caps['mod/forum:splitdiscussions'])
This will serve my purposes just fine.
To answer my own question, I copied in a permission that only teachers and above have as follows:
if ($fulllink and $cm->cache->caps['mod/forum:splitdiscussions'])
This will serve my purposes just fine.