This commit is contained in:
2020-08-09 17:37:16 +02:00
parent 644dbd9ea2
commit 2c054b9b79
4 changed files with 9 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ class EventCategoryController extends Controller
*/
public function destroy(EventCategory $category)
{
if(auth()->user()->isAdmin()) {
if (auth()->user()->isAdmin()) {
$category->delete();
return response()->json([], 204);
} else {