diff --git a/wire/modules/PagePermissions.module b/wire/modules/PagePermissions.module index e4e96d22..431daf2e 100644 --- a/wire/modules/PagePermissions.module +++ b/wire/modules/PagePermissions.module @@ -223,7 +223,7 @@ class PagePermissions extends WireData implements Module { public function userEditable(Page $page) { if($page->className() != 'User') $page = $this->wire('users')->get($page->id); - if($page instanceof NullPage) return false; + if(!$page || $page instanceof NullPage) return false; $user = $this->wire('user');