Skip to content

Commit

Permalink
Issue #27: Add some @todo for possibly empty variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Sep 13, 2024
1 parent e87eb69 commit dc42d13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function wopiCheckFileInfo(string $id, Request $request) {

$file = CoolUtils::getFileById($id);
$mtime = date_create_immutable_from_format('U', $file->getChangedTime());
// @todo What if the uid in the payload is not set?
// @todo What if $user is NULL?
$user = User::load($jwt_payload->uid);
$can_write = $jwt_payload->wri;

Expand Down

0 comments on commit dc42d13

Please sign in to comment.