Skip to content

Commit

Permalink
Merge pull request #461 from ONLYOFFICE/feature/limit-groups-share
Browse files Browse the repository at this point in the history
Feature/limit groups share
  • Loading branch information
LinneyS authored Mar 4, 2024
2 parents 4f54b43 + af8cabf commit 4488157
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- offline viewer for share link
- updatable list of supported formats
- filling pdf instead oform
- fixed guest redirect when limiting the app to groups

## Added
- reference data from coediting
Expand Down
2 changes: 1 addition & 1 deletion lib/appconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ public function isUserAllowedToUse($userId = null) {

$groups = $this->getLimitGroups();
// no group set -> all users are allowed
if (\count($groups) === 0) {
if (empty($groups)) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/hookhandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function publicPage() {

$appConfig = new AppConfig($appName);

if (!empty($appConfig->getDocumentServerUrl()) && $appConfig->settingsAreSuccessful()) {
if (!empty($appConfig->getDocumentServerUrl()) && $appConfig->settingsAreSuccessful() && empty($appConfig->getLimitGroups())) {
Util::addScript("onlyoffice", "main");
Util::addScript("onlyoffice", "share");

Expand Down

0 comments on commit 4488157

Please sign in to comment.