first init

This commit is contained in:
ISMAIL MASSERAN
2026-06-08 11:37:14 +08:00
commit 94ecbe5887
1058 changed files with 87732 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
namespace Modules\ActivityLog\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use Spatie\Activitylog\Models\Activity;
class ActivityLogPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*/
public function viewAny($user): bool
{
return $user->hasPermissionTo('lihat log aktiviti');
}
/**
* Determine whether the user can view the model.
*/
public function view($user, ?Activity $activity = null): bool
{
return $user->hasPermissionTo('lihat log aktiviti');
}
}