Skip to content

Commit

Permalink
refactor: update user permissions in UserPolicy and remove unused Fil…
Browse files Browse the repository at this point in the history
…ament config
  • Loading branch information
vincentauger committed Nov 6, 2024
1 parent 632b271 commit f200836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/Policies/UserPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UserPolicy
*/
public function viewAny(User $user)
{
return $user->can('view_any_user');
return $user->can('view_any_users');
}

/**
Expand Down Expand Up @@ -49,7 +49,7 @@ public function create(User $user)
public function update(User $user, User $model)
{

if ($user->can('administer_user')) {
if ($user->can('administer_users')) {
return true;
}

Expand Down
14 changes: 0 additions & 14 deletions config/filament.php

This file was deleted.

0 comments on commit f200836

Please sign in to comment.