Skip to content

Commit

Permalink
fix: require post (#1174)
Browse files Browse the repository at this point in the history
* fix: require post
  • Loading branch information
razvan-pro authored Apr 21, 2021
1 parent 99c4fc5 commit 22d5933
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/views/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from django.utils.safestring import mark_safe
from django.views.decorators.http import require_POST
from rest_framework import serializers

import game.level_management as level_management
Expand Down Expand Up @@ -418,6 +419,7 @@ def start_episode(request, episodeId):
return play_level(request, episode.first_level, False)


@require_POST
def delete_workspace(request, workspaceID):
workspace = Workspace.objects.get(id=workspaceID)
if permissions.can_delete_workspace(request.user, workspace):
Expand Down

0 comments on commit 22d5933

Please sign in to comment.