Add Books page and minor improvements
This commit is contained in:
@@ -11,6 +11,13 @@ use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
class PagePolicy
|
||||
{
|
||||
use HandlesAuthorization;
|
||||
|
||||
public function before(AuthUser $user, $ability)
|
||||
{
|
||||
if ($user->hasRole('super_admin')) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public function viewAny(AuthUser $authUser): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user