aboutsummaryrefslogtreecommitdiffstats
path: root/source/app/Policies/LogPolicy.php
blob: 678812807cecc59a7b6e222303e9901e8e4f8ff2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

namespace App\Policies;

use App\Models\Admin;
use App\Models\Log;

class LogPolicy
{
    public function viewAny($user): bool
    {
        return $user instanceof Admin;
    }

    public function view($user, Log $log): bool
    {
        return $user instanceof Admin;
    }

    public function create($user): bool
    {
        return $user instanceof Admin;
    }

    public function update($user, Log $log): bool
    {
        return $user instanceof Admin;
    }

    public function delete($user, Log $log): bool
    {
        return $user instanceof Admin;
    }
}