Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
1.2 KiB

<?php
namespace App\Domains\Admission\Policies;
use App\Domains\Admission\Models\AdmissionSchedule;
use App\Domains\Identity\Models\User;
class AdmissionSchedulePolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return $user->hasPermissionTo('admission-schedule.viewAny');
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, AdmissionSchedule $model): bool
{
return $user->hasPermissionTo('admission-schedule.view');
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return $user->hasPermissionTo('admission-schedule.create');
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, AdmissionSchedule $model): bool
{
return $user->hasPermissionTo('admission-schedule.update');
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, AdmissionSchedule $model): bool
{
return $user->hasPermissionTo('admission-schedule.delete');
}
}