PHP Class App\Policies\GenericEntityPolicy

Inheritance: use trait Illuminate\Auth\Access\HandlesAuthorization
Mostrar archivo Open project: hillelcoren/invoice-ninja

Public Methods

Method Description
create ( User $user, $itemType ) : boolean | mixed
editByOwner ( User $user, $itemType, $ownerUserId ) : boolean | mixed
view ( User $user, $itemType ) : boolean | mixed
viewByOwner ( User $user, $itemType, $ownerUserId ) : boolean | mixed

Method Details

create() public static method

public static create ( User $user, $itemType ) : boolean | mixed
$user app\models\User
$itemType
return boolean | mixed

editByOwner() public static method

public static editByOwner ( User $user, $itemType, $ownerUserId ) : boolean | mixed
$user app\models\User
$itemType
$ownerUserId
return boolean | mixed

view() public static method

public static view ( User $user, $itemType ) : boolean | mixed
$user app\models\User
$itemType
return boolean | mixed

viewByOwner() public static method

public static viewByOwner ( User $user, $itemType, $ownerUserId ) : boolean | mixed
$user app\models\User
$itemType
$ownerUserId
return boolean | mixed