From 55788baa6bc6384b167061114834b2a5b4405b05 Mon Sep 17 00:00:00 2001 From: Derek Smart Date: Wed, 20 Apr 2022 19:53:21 -0400 Subject: [PATCH] Fix specialops page for non-admins Follow-up to #257 which changed the logic for the regular Create page. /specialops was broken for all the people moved to editor via p9dueE-4WP-p2 --- jurassic.ninja.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jurassic.ninja.php b/jurassic.ninja.php index 2ccce96..eadad88 100644 --- a/jurassic.ninja.php +++ b/jurassic.ninja.php @@ -176,5 +176,5 @@ function page_is_launching_page() { * @return boolean [description] */ function page_is_specialops() { - return current_user_can( 'manage_options' ) && 'specialops' === get_page_uri(); + return is_user_logged_in() && 'specialops' === get_page_uri(); }