aboutsummaryrefslogtreecommitdiff
path: root/lib/models/OERReview.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/OERReview.php')
-rw-r--r--lib/models/OERReview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/OERReview.php b/lib/models/OERReview.php
index 09dc73f..69a672f 100644
--- a/lib/models/OERReview.php
+++ b/lib/models/OERReview.php
@@ -186,12 +186,12 @@ class OERReview extends BlubberThread
return URLHelper::getURL('dispatch.php/oer/market/discussion/' . $this->getId());
}
- public function isReadable(string $user_id = null)
+ public function isReadable(?string $user_id = null)
{
return true;
}
- public function isCommentable(string $user_id = null)
+ public function isCommentable(?string $user_id = null)
{
$user_id = $user_id ?? $GLOBALS['user']->id;
return $GLOBALS['perm']->have_perm('autor', $user_id);