Procházet zdrojové kódy

Merge pull request #21692 from owncloud/external-add-global

Fix adding global applicable when removing all other applicables
tags/v9.0beta1
Thomas Müller před 8 roky
rodič
revize
d0a690fde4
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      apps/files_external/service/storagesservice.php

+ 2
- 2
apps/files_external/service/storagesservice.php Zobrazit soubor

@@ -372,8 +372,8 @@ abstract class StoragesService {

$oldUserCount = count($oldStorage->getApplicableUsers());
$oldGroupCount = count($oldStorage->getApplicableGroups());
$newUserCount = count($oldStorage->getApplicableUsers());
$newGroupCount = count($oldStorage->getApplicableGroups());
$newUserCount = count($updatedStorage->getApplicableUsers());
$newGroupCount = count($updatedStorage->getApplicableGroups());
$wasGlobal = ($oldUserCount + $oldGroupCount) === 0;
$isGlobal = ($newUserCount + $newGroupCount) === 0;


Načítá se…
Zrušit
Uložit