mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-17 20:41:00 +01:00
parent
406cd4edb0
commit
be4228cd1c
@ -959,6 +959,9 @@ class UserController extends Controller
|
||||
$id = $request->id;
|
||||
|
||||
if($id == Auth::id() and $id != "1") {
|
||||
|
||||
Link::where('user_id', $id)->delete();
|
||||
|
||||
$user = User::find($id);
|
||||
|
||||
Schema::disableForeignKeyConstraints();
|
||||
|
Loading…
x
Reference in New Issue
Block a user