mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
spelling: permission
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
5566a2f14c
commit
88e0725625
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue