Skip to content

Commit

Permalink
Duh
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Oct 23, 2024
1 parent 3436afe commit f421bfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/paperlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,9 @@ private function _sort_etag_anno_groups() {
if (!$dt->has_order_anno()) {
$any = false;
foreach (["#{$etag}", "#{$alt_etag}", "tagval:{$etag}", "tagval:{$alt_etag}"] as $x) {
$any = $any || in_array("edit", $this->_view_options[$x] ?? []);
$any = $any
|| (($vol = $this->_view_options[$x] ?? null)
&& $vol->get("edit"));
}
if (!$any) {
return [];
Expand Down

0 comments on commit f421bfa

Please sign in to comment.