Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-12-16 12:50:43 +0300
committerVincent Petry <vincent@nextcloud.com>2020-12-16 12:50:43 +0300
commit25a6ba6c53530569c7379c7697acd1638a4823c1 (patch)
tree6fd356ea9033148739118dc5e0fa845579ddabff /lib/PublicShareAuth
parentb7727afe2580a34efb56ee324c4ccb34792d0b82 (diff)
Remove request password button when verif disabled
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>
Diffstat (limited to 'lib/PublicShareAuth')
-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');