PHP Class App\Policies\EntityPolicy

Inheritance: use trait Illuminate\Auth\Access\HandlesAuthorization
Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Méthodes publiques

Méthode Description
create ( User $user, $item ) : boolean
edit ( User $user, $item ) : boolean
editByOwner ( User $user, $ownerUserId ) : boolean
view ( User $user, $item ) : boolean
viewByOwner ( User $user, $ownerUserId ) : boolean

Private Methods

Méthode Description
checkModuleEnabled ( User $user, $item )

Method Details

create() public static méthode

public static create ( User $user, $item ) : boolean
$user app\models\User
Résultat boolean

edit() public static méthode

public static edit ( User $user, $item ) : boolean
$user app\models\User
$item
Résultat boolean

editByOwner() public static méthode

public static editByOwner ( User $user, $ownerUserId ) : boolean
$user app\models\User
$ownerUserId
Résultat boolean

view() public static méthode

public static view ( User $user, $item ) : boolean
$user app\models\User
$item
Résultat boolean

viewByOwner() public static méthode

public static viewByOwner ( User $user, $ownerUserId ) : boolean
$user app\models\User
$ownerUserId
Résultat boolean