Skip to content

Commit

Permalink
feat: Added type field on variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Oct 17, 2024
1 parent ec7b013 commit c4646c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Http/Controllers/API/Settings/RoleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ public function setVariables(Request $request)
'variable',
$request->key,
$request->value,
null,
$request->type ?? null,
'roles'
);

Expand All @@ -581,6 +581,7 @@ public function setVariables(Request $request)
'role_id' => $request->role_id,
'key' => $request->key,
'value' => $request->value,
'type' => $request->type ?? null,
]
],
"ROLE_EDIT"
Expand All @@ -598,7 +599,7 @@ public function deleteVariables(Request $request)
{
Permission::whereIn('id', $request->permission_ids)->delete();

return response()->json('Fonksiyonlar başarıyla silindi.');
return response()->json('Veri başarıyla silindi.');
}

/**
Expand Down

0 comments on commit c4646c8

Please sign in to comment.