spelling: permission
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
5566a2f14c
commit
88e0725625
|
@ -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.'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user