mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 14:39:32 +01:00
22 lines
456 B
PHP
22 lines
456 B
PHP
<?php
|
|
|
|
namespace App\Policies\Server;
|
|
|
|
use App\Models\Permission;
|
|
use Filament\Facades\Filament;
|
|
|
|
class ActivityLogPolicy
|
|
{
|
|
protected string $modelName = 'activityLog';
|
|
|
|
public static function viewAny(): bool
|
|
{
|
|
return user()?->can(Permission::ACTION_ACTIVITY_READ, Filament::getTenant());
|
|
}
|
|
|
|
public static function view(): bool
|
|
{
|
|
return user()?->can(Permission::ACTION_ACTIVITY_READ, Filament::getTenant());
|
|
}
|
|
}
|