Skip to content

Commit

Permalink
Merge branch 'feature/MOOSE-172/admin-menu-cleanup' of github.com:mod…
Browse files Browse the repository at this point in the history
…erntribe/moose into feature/MOOSE-172/admin-menu-cleanup
  • Loading branch information
GeoffDusome committed Jan 15, 2025
2 parents aa24712 + ef1cc40 commit 25a01e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-content/plugins/core/src/Post_Types/Training/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function add_user_caps(): void {
* if not, send and display 404.
*/
public function send_404_unauthorized(): void {
if ( is_post_type_viewable( $this->post_type ) ) {
if ( is_post_type_viewable( get_post_type() ) || get_post_type() !== Training::NAME ) {
return;
}

Expand Down

0 comments on commit 25a01e8

Please sign in to comment.