<?php #CodeGenerator V3 Δ c00cbb824fda4eaa5298c226de445075 Δ DYNAMICALLY GENERATED FILE - Do not modify this line! Remove it completely to protect the file from changes.
/**
 * Policy Class
 *
 * @version     1.0.$Revision:$
 * @version     SVN: $Id:$
 * @version     STUB: 1.0.0
 * @generated   2026-03-27 09:40:31
 * @package     bplan-base/globals
 * @subpackage  Policies
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 * @copyright   Copyright (C) 2025, 2026 bplan-solutions GmbH & Co. KG <https://www.bplan-solutions.de/>
 * /Δ\
 */

namespace BplanBase\Globals\Policies;


use BplanBase\Globals\Models\TenantUser;
use BplanBase\Globals\Models\User;
use Illuminate\Auth\Access\Response;


/**
 * Policy Class
 *
 * @version     1.0.0 / 2026-03-27
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class TenantUserPolicy
{


/* +++ TRAITS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS CONSTANTS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT MEMBERS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS MEMBERS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT METHODS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


    /**
     * Determine whether the user can create models.
     *
     * @param       User $AuthUser
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function create(User $AuthUser): bool
    {
        return true;

    } // create()


    /**
     * Determine whether the user can delete the model.
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function delete(User $AuthUser, TenantUser $Model): bool
    {
        return true;

    } // delete()


    /**
     * Determine whether the user can permanently delete the model.
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function forceDelete(User $AuthUser, TenantUser $Model): bool
    {
        return true;

    } // forceDelete()


    /**
     * Determine whether the user can restore the model.
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function restore(User $AuthUser, TenantUser $Model): bool
    {
        return true;

    } // restore()


    /**
     * Determine whether the user can update the model.
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function update(User $AuthUser, TenantUser $Model): bool
    {
        return true;

    } // update()


    /**
     * Determine whether the user can view the model.
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function view(User $AuthUser, TenantUser $Model): bool
    {
        return true;

    } // view()


    /**
     * Determine whether the user can view any models.
     *
     * @param       User $AuthUser
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function viewAny(User $AuthUser): bool
    {
        return true;

    } // viewAny()


    /**
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function viewTenant(User $AuthUser, TenantUser $Model): bool
    {
        return $this->view($AuthUser, $Model);

    } // viewTenant()


    /**
     *
     * @param       User $AuthUser
     *
     * @param       TenantUser $Model
     *
     * @return      bool
     *
     * @version     1.0.0 / 2026-03-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function viewUser(User $AuthUser, TenantUser $Model): bool
    {
        return $this->view($AuthUser, $Model);

    } // viewUser()


/* +++ CLASS METHODS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


} // class TenantUserPolicy {}
