Security concern addressed

This commit is contained in:
Austin 2021-10-29 22:10:17 -04:00
parent e1f378505c
commit 5db00743a6
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ if ($id)
{
if(isLoggedIn())
{
if ($iteminfo->IsPublicDomain == true or $iteminfo->CreatorId == $user->id or $user->isAdmin())
if ($iteminfo->IsPublicDomain == true or $iteminfo->CreatorId == $user->id or $user->isOwner())
{
ReturnAsset($iteminfo->Hash, $iteminfo->AssetTypeId);
}