fixed file controller not setting user field to 0

This commit is contained in:
flash 2016-12-23 20:17:10 +01:00
parent a7a81ca64d
commit 3e4c3c878a

View file

@ -125,6 +125,10 @@ class FileController extends Controller
if ($fileId) { if ($fileId) {
(new File($fileId))->delete(); (new File($fileId))->delete();
} }
DB::table('users')
->where('user_id', $user->id)
->update(["user_{$mode}" => 0]);
} }
/** /**