<?php

namespace App\Policies;

use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class AboutPageContentPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }
    public function create(User $user){
        return false;
    }
    public function update(User $user){
        return $user->hasAnyPermission(['control contents']);
    }
    public function view(User $user){
        return $user->hasAnyPermission(['control contents']);
    }
    public function delete(User $user){
        return false;
    }
    public function viewAny(User $user){
        return $user->hasAnyPermission(['control contents']);
    }
}
