Commit 986ec462 authored by Mark Harding's avatar Mark Harding

(fix): do not show blog if not published

parent e399b351
1 merge request!294epic/post-scheduler
Pipeline #82606825 passed with stages
in 12 minutes and 4 seconds
......@@ -141,6 +141,7 @@ class blog implements Interfaces\Api
!$blog ||
Helpers\Flags::shouldFail($blog) ||
!Core\Security\ACL::_()->read($blog)
|| ($blog->getTimeCreated() > time() && !$blog->canEdit())
) {
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment