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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2020-01-23 09:31:17 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2020-01-23 09:31:17 +0300
commitb63e3696ba7a13dedc5afd543cec0636c90bf4e2 (patch)
tree2c7205b4a9536e7668921fed4e91ec4946ffdee6 /appinfo/application.php
parentd8cffcdbd4db524710c41682bf158e8a1a8b65d1 (diff)
direct editing only for selected groups
Diffstat (limited to 'appinfo/application.php')
-rw-r--r--appinfo/application.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index cfc0873..8e7375e 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -80,7 +80,8 @@ class Application extends App {
$eventDispatcher->addListener("OCA\Files_Sharing::loadAdditionalScripts",
function() {
- if (!empty($this->appConfig->GetDocumentServerUrl()) && $this->appConfig->SettingsAreSuccessful()) {
+ if (!empty($this->appConfig->GetDocumentServerUrl())
+ && $this->appConfig->SettingsAreSuccessful()) {
Util::addScript("onlyoffice", "main");
Util::addStyle("onlyoffice", "main");
}
@@ -131,7 +132,9 @@ class Application extends App {
$eventDispatcher->addListener(RegisterDirectEditorEvent::class,
function (RegisterDirectEditorEvent $event) use ($container) {
- if (!empty($this->appConfig->GetDocumentServerUrl()) && $this->appConfig->SettingsAreSuccessful()) {
+ if (!empty($this->appConfig->GetDocumentServerUrl())
+ && $this->appConfig->SettingsAreSuccessful()
+ && $this->appConfig->isUserAllowedToUse()) {
$editor = $container->query("DirectEditor");
$event->register($editor);
}