You've already forked Atomcms-edit
19 lines
309 B
PHP
Executable File
19 lines
309 B
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
|
|
|
class CommandLogPolicy
|
|
{
|
|
use HandlesAuthorization;
|
|
|
|
public function viewAny(User $user): bool
|
|
{
|
|
return hasHousekeepingPermission('manage_commandlogs');
|
|
}
|
|
}
|