Skip to content

Commit

Permalink
Remove request password button when verif disabled
Browse files Browse the repository at this point in the history
Whenever the video verification has not been set for a share, do not
display the button "Request password" in the public link page.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
  • Loading branch information
PVince81 authored and backportbot[bot] committed Dec 18, 2020
1 parent 7535091 commit e076c68
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 e076c68

Please sign in to comment.