Skip to content

Commit

Permalink
fix: unpublished project - publish screen access policy updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Apr 29, 2024
1 parent ab3b049 commit fbc7a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Policies/ProjectPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function createProject(User $user)
*/
public function updateProject(User $user, Project $project)
{
if ($project->is_public || $project->is_archived || $project->is_deleted || $project->is_published || (! $project->is_published && $project->doi)) {
if ($project->is_public || $project->is_archived || $project->is_deleted || $project->is_published) {
return false;
}

Expand Down

0 comments on commit fbc7a7a

Please sign in to comment.