Skip to content

Commit

Permalink
fix: change user non premium can generate food data
Browse files Browse the repository at this point in the history
  • Loading branch information
amrron committed Oct 22, 2024
1 parent 321f45d commit 198c9c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/Http/Controllers/FoodController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ public function generate(GenerateFoodRequest $request) {

$user = auth()->user();

if (!$user->langganan) {
return response()->json([
'success' => false,
'status' => 'error',
'error' => 'Gagal membuat data makanan',
'message' => 'Fitur ini khusus pengguna premium'
], 401);
}
// if (!$user->langganan) {
// return response()->json([
// 'success' => false,
// 'status' => 'error',
// 'error' => 'Gagal membuat data makanan',
// 'message' => 'Fitur ini khusus pengguna premium'
// ], 401);
// }

$validatedRequest = $request->validated();

Expand Down

0 comments on commit 198c9c0

Please sign in to comment.