Commit 00a636a8 authored by Guy Thouret's avatar Guy Thouret

(fix) Blog activity was not being created for 'loggedIn' access setting - Related to front#1889

1 merge request!303Propagate Properties when entities get updated
Pipeline #81925016 failed with stages
in 4 minutes and 11 seconds
......@@ -337,7 +337,7 @@ class blog implements Interfaces\Api
}
if ($saved) {
if ($blog->isPublished() && $blog->getAccessId() == Access::PUBLIC) {
if ($blog->isPublished() && in_array($blog->getAccessId(), [Access::PUBLIC, Access::LOGGED_IN])) {
if (!$editing || ($editing && !$alreadyPublished) || ($editing && $oldAccessId == Access::UNLISTED)) {
(new CreateActivity())->save($blog);
}
......
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