Skip to content

Commit

Permalink
fix: user policy
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpak1300 committed Jan 3, 2025
1 parent e4d4116 commit 92e4c7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/Policies/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ final class UserPolicy
*/
public function viewAny(User $user): bool
{
return $user->hasTeamPermission($user->currentTeam, 'read')
&& $user->tokenCan('read');
return true;
}

/**
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_STORE" value="file"/>
<env name="DB_DATABASE" value="testing"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="MAIL_MAILER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="QUEUE_CONNECTION" value="sync"/>
Expand Down

0 comments on commit 92e4c7c

Please sign in to comment.