Skip to content
Snippets Groups Projects
Unverified Commit ca54813c authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #19978 from nextcloud/harden/check_for_owner

Actually check if the owner is not null
parents 557c4966 3443a006
No related branches found
No related tags found
No related merge requests found
......@@ -1687,6 +1687,11 @@ class View {
if (!$info) {
throw new NotFoundException($path . ' not found while trying to get owner');
}
if ($info->getOwner() === null) {
throw new NotFoundException($path . ' has no owner');
}
return $info->getOwner()->getUID();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment