Skip to content

Commit

Permalink
fix order of dojo_route/admin
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jan 23, 2024
1 parent 0dd5951 commit b629caa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dojo_plugin/api/v1/dojo.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def create_dojo(user, repository, public_key, private_key):
@dojo_namespace.route("/<dojo>/prune-awards")
class PruneAwards(Resource):
@authed_only
@dojo_admin
@dojo_route
@dojo_admin
def post(self, dojo):
all_completions = set(user for user,_ in dojo.completions())
num_pruned = 0
Expand All @@ -93,8 +93,8 @@ def post(self, dojo):
@dojo_namespace.route("/<dojo>/promote-admin")
class PromoteAdmin(Resource):
@authed_only
@dojo_admin
@dojo_route
@dojo_admin
def post(self, dojo):
data = request.get_json()
if 'user_id' not in data:
Expand Down

0 comments on commit b629caa

Please sign in to comment.