You've already forked Atomcms-edit
50 lines
973 B
PHP
Executable File
50 lines
973 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
|
use Spatie\Activitylog\Models\Activity;
|
|
|
|
class ActivityPolicy
|
|
{
|
|
use HandlesAuthorization;
|
|
|
|
public function viewAny(User $user): bool
|
|
{
|
|
return hasHousekeepingPermission('view_activity_logs');
|
|
}
|
|
|
|
public function view(User $user, Activity $activity): bool
|
|
{
|
|
return hasHousekeepingPermission('view_activity_logs');
|
|
}
|
|
|
|
public function create(User $user): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function update(User $user, Activity $activity): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function delete(User $user, Activity $activity): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function restore(User $user, Activity $activity): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function forceDelete(User $user, Activity $activity): bool
|
|
{
|
|
return false;
|
|
}
|
|
}
|