Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/develop' into feature/nc-27
Browse files Browse the repository at this point in the history
  • Loading branch information
LinneyS committed Apr 1, 2024
2 parents 399777d + 5e658ea commit b2a57c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Controller/EditorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function users($fileId, $operationType = null) {

$excludedGroups = $this->getShareExcludedGroups();
$isMemberExcludedGroups = true;
if (count(array_intersect($currentUserGroups, $excludedGroups)) !== count($currentUserGroups)) {
if ((count(array_intersect($currentUserGroups, $excludedGroups)) !== count($currentUserGroups)) || empty($currentUserGroups)) {
$isMemberExcludedGroups = false;
}

Expand Down Expand Up @@ -530,7 +530,7 @@ public function mention($fileId, $anchor, $comment, $emails) {

$excludedGroups = $this->getShareExcludedGroups();
$isMemberExcludedGroups = true;
if (count(array_intersect($currentUserGroups, $excludedGroups)) !== count($currentUserGroups)) {
if ((count(array_intersect($currentUserGroups, $excludedGroups)) !== count($currentUserGroups)) || empty($currentUserGroups)) {
$isMemberExcludedGroups = false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@
if (wrapEl.length > 0) {
wrapEl[0].style.height = (screen.availHeight - headerHeight) + "px";
window.scrollTo(0, -1);
wrapEl[0].style.height = (window.innerHeight - headerHeight) + "px";
wrapEl[0].style.height = (window.top.innerHeight - headerHeight) + "px";
}
};

Expand Down

0 comments on commit b2a57c6

Please sign in to comment.