@@ -73,11 +73,6 @@ public function __construct(IL10N $l, ISystemTagManager $systemTagManager, ISyst
7373 * @return bool
7474 */
7575 public function executeCheck ($ operator , $ value ) {
76- if (str_starts_with ($ this ->path , '__groupfolders ' )) {
77- // System tags are always empty in this case and executeCheck is called
78- // a second time with the jailedPath
79- return false ;
80- }
8176 $ systemTags = $ this ->getSystemTags ();
8277 return ($ operator === 'is ' ) === in_array ($ value , $ systemTags );
8378 }
@@ -143,13 +138,11 @@ protected function getFileIds(ICache $cache, $path, $isExternalStorage) {
143138 // Special implementation for groupfolder since all groupfolders share the same storage
144139 // id so add the group folder id in the cache key too.
145140 $ groupFolderStorage = $ this ->storage ;
146- $ groupFolderStorageClass = \OCA \GroupFolders \Mount \GroupFolderStorage::class;
147- while ($ groupFolderStorage ->instanceOfStorage (Wrapper::class)) {
148- if ($ groupFolderStorage instanceof $ groupFolderStorageClass ) {
149- break ;
150- }
151- /** @var Wrapper $groupFolderStorage */
152- $ groupFolderStorage = $ groupFolderStorage ->getWrapperStorage ();
141+ if (is_a ($ this ->storage , Wrapper::class)) {
142+ $ groupFolderStorage = $ this ->storage ->getInstanceOfStorage (\OCA \GroupFolders \Mount \GroupFolderStorage::class);
143+ }
144+ if ($ groupFolderStorage === null ) {
145+ throw new \LogicException ('Should not happen: Storage is instance of GroupFolderStorage but no group folder storage found while unwrapping. ' );
153146 }
154147 /** @psalm-suppress UndefinedMethod */
155148 $ cacheId = $ cache ->getNumericStorageId () . '/ ' . $ groupFolderStorage ->getFolderId ();
0 commit comments