spelling: permission

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2023-03-25 22:05:40 -04:00
parent 5566a2f14c
commit 88e0725625

View File

@ -49,7 +49,7 @@ class Attach extends BaseModule
throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('Item was not found.')); throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('Item was not found.'));
} }
// Now we'll fetch the item, if we have enough permisson // Now we'll fetch the item, if we have enough permission
$item = MAttach::getByIdWithPermission($item_id); $item = MAttach::getByIdWithPermission($item_id);
if ($item === false) { if ($item === false) {
throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.')); throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));