Skip to content

Commit

Permalink
Merge pull request #4795 from nextcloud/backport/4769/stable20
Browse files Browse the repository at this point in the history
[stable20] Remove request password button when verif disabled
  • Loading branch information
PVince81 authored Dec 18, 2020
2 parents 7535091 + e076c68 commit 87e6360
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/PublicShareAuth/TemplateLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ public function handle(Event $event): void {
return;
}

// Check if "Video verification" option was set
$share = $event->getShare();
if (!$share->getSendPasswordByTalk()) {
return;
}

Util::addStyle('spreed', 'merged-share-auth');
Util::addScript('spreed', 'talk-public-share-auth-sidebar');

Expand Down

0 comments on commit 87e6360

Please sign in to comment.