feat: izinkan semua user melihat dan melakukan voting
This commit is contained in:
@@ -14,12 +14,12 @@ class VotePolicy
|
|||||||
|
|
||||||
public function viewAny(AuthUser $authUser): bool
|
public function viewAny(AuthUser $authUser): bool
|
||||||
{
|
{
|
||||||
return $authUser->can('ViewAny:Vote');
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function view(AuthUser $authUser, Vote $vote): bool
|
public function view(AuthUser $authUser, Vote $vote): bool
|
||||||
{
|
{
|
||||||
return $authUser->can('View:Vote');
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(AuthUser $authUser): bool
|
public function create(AuthUser $authUser): bool
|
||||||
|
|||||||
Reference in New Issue
Block a user