Skip to content

Commit

Permalink
Allow author to access issues w/ restricted_access
Browse files Browse the repository at this point in the history
Fixes #413
  • Loading branch information
Alanaktion committed Jan 30, 2023
1 parent f39a640 commit 0817087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/model/issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ public function allowAccess(\Model\User $user = null): bool
}

$helper = \Helper\Dashboard::instance();
return ($this->owner_id == $user->id) || in_array($this->owner_id, $helper->getGroupIds());
return ($this->owner_id == $user->id)
|| ($this->author_id == $user->id)
|| in_array($this->owner_id, $helper->getGroupIds());
}
}

0 comments on commit 0817087

Please sign in to comment.