The social comments block plugin for Moodle increases engagement by fostering peer learning through comment subscription, email digests, comments newsfeed, comment search and pinning of important comments and content to the pin board. This plugin is part of a collection of open source plugins, which all have the goal to improve the overall usability/ user experience of Moodle.
I see some references to $USER in that function/class - which suggests that the call should probably be made after the require_login check in that page.
https://github.com/Elearning-HWR-Berlin/moodle-block_social-comments/blob/master/report/delete_comment.php#L31
I see some references to $USER in that function/class - which suggests that the call should probably be made after the require_login check in that page.