fix #1829 親フォルダが公開状態の非公開の固定ページが閲覧できる #1832
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
issue: #1829
@ryuring mtgでお時間をとっていただいて申し訳ないのですが、原因としてはシンプルでしたので軽い修正ですみました。
原因としては親要素に公開期間が設定されている場合、親要素の公開状態まで上書きされてしまうということでした。
でしたので、以下のように調整しています。
今までこのあたりの処理が混ざっていたので分割しています。
また、親要素と子要素、両方に公開期間が設定されていた場合はどうするか、という問題なのですが、
現在の仕様でも親要素の公開期間を優先する仕様でしたので特に対応は不要でした。
ご確認お願いします。