65 lines
1.3 KiB
PHP
65 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\User;
|
|
use App\Veranstaltung;
|
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
|
|
|
class VeranstaltungPolicy
|
|
{
|
|
use HandlesAuthorization;
|
|
|
|
/**
|
|
* Determine whether the user can view the veranstaltung.
|
|
*
|
|
* @param \App\User $user
|
|
* @param \App\Veranstaltung $veranstaltung
|
|
* @return mixed
|
|
*/
|
|
public function view(User $user, Veranstaltung $veranstaltung)
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* Determine whether the user can create veranstaltungs.
|
|
*
|
|
* @param \App\User $user
|
|
* @return mixed
|
|
*/
|
|
public function create(User $user)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Determine whether the user can update the veranstaltung.
|
|
*
|
|
* @param \App\User $user
|
|
* @param \App\Veranstaltung $veranstaltung
|
|
* @return mixed
|
|
*/
|
|
public function update(User $user, Veranstaltung $veranstaltung)
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Determine whether the user can delete the veranstaltung.
|
|
*
|
|
* @param \App\User $user
|
|
* @param \App\Veranstaltung $veranstaltung
|
|
* @return mixed
|
|
*/
|
|
public function delete(User $user, Veranstaltung $veranstaltung)
|
|
{
|
|
//
|
|
}
|
|
|
|
public function eintragen(User $user,Veranstaltung $veranstaltung)
|
|
{
|
|
|
|
}
|
|
}
|