Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #258 from Automattic/fix/specialops-non-admins
Browse files Browse the repository at this point in the history
Fix specialops page for non-admins
  • Loading branch information
dereksmart authored Apr 20, 2022
2 parents 3170c17 + 55788ba commit a8568d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jurassic.ninja.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit a8568d4

Please sign in to comment.