HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/eleo.komma.nl/app/ActionLogs/ActionLogPolicy.php
<?php declare(strict_types=1);


namespace App\ActionLogs;
use Komma\KMS\ActionLog\ActionLogPolicy as KmsActionLogPolicy;
use Komma\KMS\Users\Models\KmsUser;

class ActionLogPolicy extends KmsActionLogPolicy
{
    public function __construct()
    {
        parent::__construct();
        parent::$DEBUG = ActionLogPolicy::class;
    }

    public function before(KmsUser $user, $ability)
    {
        return false; //In basic, nobody may see the action log system
    }

    /**
     * Determine if a use may edit sites
     *
     * @param KmsUser|null $user
     * @return bool
     */
    public function viewLogs(?KmsUser $user): bool
    {
        return false; //In basic, nobody may see the action log system
    }
}