Fix Article::canEdit() permission for article contributors
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 10 Mar 2023 12:22:12 +0000 (13:22 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 10 Mar 2023 12:24:08 +0000 (13:24 +0100)
commit29a795dc05a8afd168eb36b9f63c38eada4f06ae
treec1e30ac01a086f2c67379ff1f309fbb15881e01d
parent8ceada115495b5fc746c2d7d3e205d442e3325cd
Fix Article::canEdit() permission for article contributors

The previous return value was non-sense, because `false` is already the
default. Users that may contribute articles may edit their own articles until
they are published, thus this must `return true`.

This was introduced in a40df44c036bd6201e4e8f9cef5fb878dba4dd4f.
wcfsetup/install/files/lib/data/article/Article.class.php