When replying to a thread, an error occurs:
Argument 1 passed to XenForo_Permission::hasPermission() must be of the type array, null given, called in xyz/forum/library/Nobita/Teams/Model/Team.php on line 1220 and defined
XenForo_Application::handlePhpError() in XenForo/Permission.php at line 27...