mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-25 03:43:33 +01:00
User permissions
This commit is contained in:
parent
144074efb9
commit
8ee209a282
@ -111,7 +111,7 @@ class UsersController extends Controller
|
||||
{
|
||||
$user = User::findOrFail($id);
|
||||
|
||||
$this->authorize('view', $user);
|
||||
$this->authorize('update', $user);
|
||||
|
||||
$users = User::all()->except($id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user