diff options
author | Vincent Petry <vincent@nextcloud.com> | 2020-12-16 12:50:43 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2020-12-16 12:50:43 +0300 |
commit | 25a6ba6c53530569c7379c7697acd1638a4823c1 (patch) | |
tree | 6fd356ea9033148739118dc5e0fa845579ddabff /lib/PublicShareAuth | |
parent | b7727afe2580a34efb56ee324c4ccb34792d0b82 (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.php | 6 |
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'); |