Skip to content

Commit

Permalink
Improve policy file for extending
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden Keith committed Jun 4, 2019
1 parent 7a741b7 commit b709cd6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/Policies/RolePolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,44 @@

namespace RomegaDigital\MultitenancyNovaTool\Policies;

use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;

class RolePolicy
{
use HandlesAuthorization;

public function viewAny(): bool
public function viewAny(User $user): bool
{
return false;
}

public function view(): bool
public function view(User $user, Role $role): bool
{
return false;
}

public function create(): bool
public function create(User $user): bool
{
return false;
}

public function update(): bool
public function update(User $user, Role $role): bool
{
return false;
}

public function delete(): bool
public function delete(User $user, Role $role): bool
{
return false;
}

public function restore(): bool
public function restore(User $user, Role $role): bool
{
return false;
}

public function forceDelete(): bool
public function forceDelete(User $user, Role $role): bool
{
return false;
}
Expand Down

0 comments on commit b709cd6

Please sign in to comment.