Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
vd1992 committed Sep 27, 2024
1 parent 929b5ac commit da0eb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/Policies/PoolPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function updatePublished(User $user, Pool $pool)
*/
public function publish(User $user, Pool $pool)
{
if ($pool->getStatusAttribute() !== PoolStatus::DRAFT->name) {
if ($pool->status !== PoolStatus::DRAFT->name) {
return Response::deny('Pool has already been published.');
}

Expand Down

0 comments on commit da0eb95

Please sign in to comment.