Skip to content

Commit

Permalink
CONTRIB-9415: Fix import link button (#611)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesus Federico <jesus@123it.ca>
  • Loading branch information
ssj365 and jfederico authored Nov 2, 2023
1 parent 65536f4 commit 91f167e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 91f167e

Please sign in to comment.