Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Properly check for hidden pages in AccessUtility #323

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

eliashaeussler
Copy link
Owner

@eliashaeussler eliashaeussler commented Jul 16, 2023

This PR hardens the page permission check for pages in AccessUtility. If any page is hidden, even users with admin privileges can no longer warmup those pages.

@eliashaeussler eliashaeussler added the bug Something isn't working label Jul 16, 2023
@eliashaeussler eliashaeussler self-assigned this Jul 16, 2023
@codeclimate
Copy link

codeclimate bot commented Jul 16, 2023

Code Climate has analyzed commit ee8c402 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 72.8% (0.0% change).

View more on Code Climate.

@codecov
Copy link

codecov bot commented Jul 16, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (7878eb5) 72.80% compared to head (ee8c402) 72.80%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #323   +/-   ##
=========================================
  Coverage     72.80%   72.80%           
+ Complexity      333      332    -1     
=========================================
  Files            41       41           
  Lines          1114     1114           
=========================================
  Hits            811      811           
  Misses          303      303           
Impacted Files Coverage Δ
Classes/Utility/AccessUtility.php 96.42% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@eliashaeussler eliashaeussler force-pushed the fix/exclude-hidden-pages branch from 51baf12 to ce44649 Compare July 16, 2023 09:12
@eliashaeussler eliashaeussler force-pushed the fix/exclude-hidden-pages branch from ce44649 to ee8c402 Compare July 16, 2023 09:19
@eliashaeussler eliashaeussler changed the title [BUGFIX] Properly check for hidden pages in AccessUtility [BUGFIX] Properly check for hidden pages in AccessUtility Jul 16, 2023
@eliashaeussler eliashaeussler enabled auto-merge July 16, 2023 09:19
@eliashaeussler eliashaeussler merged commit 878371d into main Jul 16, 2023
@eliashaeussler eliashaeussler deleted the fix/exclude-hidden-pages branch July 16, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant