File tree 5 files changed +10
-32
lines changed
5 files changed +10
-32
lines changed Original file line number Diff line number Diff line change 1
1
# Release Notes for Isolate
2
2
3
+ ## 1.5.0 - 2022-11-10
4
+
5
+ ### Fixed
6
+ - Fixes an issue where structure-based queries return all entries on the site
7
+
8
+ ### Changed
9
+ - Remove ` getStructureEntries() ` and make all queries through ` getAllEntries() ` .
10
+
3
11
## 1.4.4 - 2021-11-10
4
12
5
13
### Fixed
Original file line number Diff line number Diff line change 2
2
"name" : " trendyminds/isolate" ,
3
3
"description" : " Restrict your Craft CMS users on a per-entry basis" ,
4
4
"type" : " craft-plugin" ,
5
- "version" : " 1.4.4 " ,
5
+ "version" : " 1.5.0 " ,
6
6
"keywords" : [
7
7
" permissions" ,
8
8
" entry permission" ,
Original file line number Diff line number Diff line change @@ -142,27 +142,6 @@ public function isStructure(int $sectionId)
142
142
return $ section ->type === Section::TYPE_STRUCTURE ;
143
143
}
144
144
145
- /**
146
- * Returns all entries contained in a structure
147
- *
148
- * @param int $sectionId
149
- * @return mixed
150
- */
151
- public function getStructureEntries (int $ sectionId )
152
- {
153
- /** @var Sections $sections */
154
- $ sections = Craft::$ app ->getSections ();
155
- $ section = $ sections ->getSectionById ($ sectionId );
156
-
157
- /** @var Structures $structures */
158
- $ structures = Craft::$ app ->getStructures ();
159
- $ structure = $ structures ->getStructureById ($ section ->structureId );
160
-
161
- return $ this ->groupEntries (
162
- Entry::findAll ([ "structureId " => $ structure ->id , "status " => null ])
163
- );
164
- }
165
-
166
145
/**
167
146
* Groups entries with the same ID (multi-site setup)
168
147
*
Original file line number Diff line number Diff line change 50
50
{% set isolatedEntries = isolatedEntries | merge([record .entryId ]) %}
51
51
{% endfor %}
52
52
53
- {% if isStructure %}
54
- {% set entries = craft .isolate .getStructureEntries (section .id ) %}
55
- {% else %}
56
- {% set entries = craft .isolate .getAllEntries (section .id ) %}
57
- {% endif %}
53
+ {% set entries = craft .isolate .getAllEntries (section .id ) %}
58
54
59
55
<input type =" hidden" name =" action" value =" isolate/users/save" >
60
56
<input type =" hidden" name =" userId" value =" {{user .id }}" >
Original file line number Diff line number Diff line change @@ -52,9 +52,4 @@ public function isStructure(int $sectionId)
52
52
{
53
53
return Isolate::$ plugin ->isolateService ->isStructure ($ sectionId );
54
54
}
55
-
56
- public function getStructureEntries (int $ sectionId )
57
- {
58
- return Isolate::$ plugin ->isolateService ->getStructureEntries ($ sectionId );
59
- }
60
55
}
You can’t perform that action at this time.
0 commit comments