From 91f167e8c6e9023dcf611a9fcb06dcf562bbb115 Mon Sep 17 00:00:00 2001 From: "Shamiso.Jaravaza" <33659194+ssj365@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:11:58 -0400 Subject: [PATCH] CONTRIB-9415: Fix import link button (#611) Co-authored-by: Jesus Federico --- classes/instance.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/instance.php b/classes/instance.php index a46b2a8f..fd6af8fc 100644 --- a/classes/instance.php +++ b/classes/instance.php @@ -755,8 +755,9 @@ public function is_recorded(): bool { * @return bool */ public function can_import_recordings(): bool { - if ($this->can_manage_recordings()) { - return true; + // Users who can't manage recordings should not be able to import them. + if (!$this->can_manage_recordings()) { + return false; } return $this->is_feature_enabled('importrecordings');