Skip to content

Commit 0b7ce9e

Browse files
authored
Update BasePolicy.php
1 parent a7c2ac7 commit 0b7ce9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Policies/BasePolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function validatePermissions(
121121
$ownership = 'other';
122122

123123
if ($model
124-
&& $user->getKey() === $model->governor_owned_by
124+
&& $user->getKey() == $model->governor_owned_by
125125
) {
126126
$ownership = 'own';
127127
}

0 commit comments

Comments
 (0)