summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-12-16 11:31:17 +0100
committerGitHub <noreply@github.com>2020-12-16 11:31:17 +0100
commit8f06b37d8816b687f317595f6f36d72e67bdd73c (patch)
treecd0caa6f603ecb1d2b70d3345418e3795c66e547
parent144be8ca49466ae6cd6497b634607c981a097485 (diff)
parent25a6ba6c53530569c7379c7697acd1638a4823c1 (diff)
Merge pull request #4769 from nextcloud/bugfix/4523/fix-video-verif-button-disabled
Remove request password button when verif disabled
-rw-r--r--lib/PublicShareAuth/TemplateLoader.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/PublicShareAuth/TemplateLoader.php b/lib/PublicShareAuth/TemplateLoader.php
index af68c1413..3a4f32c80 100644
--- a/lib/PublicShareAuth/TemplateLoader.php
+++ b/lib/PublicShareAuth/TemplateLoader.php
@@ -67,6 +67,12 @@ class TemplateLoader implements IEventListener {
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');