Commit 31cffea2 authored by Guy Thouret's avatar Guy Thouret

(fix) Linter wanted strictness in blog api change - Related to front#1889

1 merge request!303Propagate Properties when entities get updated
Pipeline #81925893 failed with stages
in 9 minutes and 3 seconds
......@@ -337,7 +337,7 @@ class blog implements Interfaces\Api
}
if ($saved) {
if ($blog->isPublished() && in_array($blog->getAccessId(), [Access::PUBLIC, Access::LOGGED_IN])) {
if ($blog->isPublished() && in_array($blog->getAccessId(), [Access::PUBLIC, Access::LOGGED_IN], true)) {
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