Added Auth
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\User;
|
||||
use App\Eintragung;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
|
||||
class EintragPolicy
|
||||
{
|
||||
use HandlesAuthorization;
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the eintragung.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Eintragung $eintragung
|
||||
* @return mixed
|
||||
*/
|
||||
public function view(User $user, Eintragung $eintragung)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create eintragungs.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the eintragung.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Eintragung $eintragung
|
||||
* @return mixed
|
||||
*/
|
||||
public function update(User $user, Eintragung $eintragung)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the eintragung.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param \App\Eintragung $eintragung
|
||||
* @return mixed
|
||||
*/
|
||||
public function delete(User $user, Eintragung $eintragung)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
<?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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user