truonglv
Well-known member
- Affected version
- 2.1.0-beta6
Hello there.
Look into the API Attachment controller I see this.
So i guess it is should be
Look into the API Attachment controller I see this.
Code:
// If the attachment has a temp hash, then it hasn't been associated yet.
// If we have the hash/key that applies, then that should generally be sufficient.
if (!$attachment->temp_hash)
{
$container = $attachment->Container;
if (!$container)
{
return $this->noPermission();
}
$context = $handler->getContext($container);
if (\XF::isApiCheckingPermissions() && !$handler->canManageAttachments($context, $error))
{
return $this->noPermission($error);
}
}
if($attachment->temp_hash)
?