Skip to content

Commit

Permalink
Merge pull request canonical#14205 from canonical/add-permission-on-i…
Browse files Browse the repository at this point in the history
…ssuing-badge

chore: restrict badge issuing api to credential admins
  • Loading branch information
usamabinnadeem-10 authored Aug 20, 2024
2 parents 142c577 + c6f6e6c commit 725a8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/shop/cred/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ def fetch_assessments(page: int):


@shop_decorator(area="cred", permission="user", response="json")
@credentials_group()
@credentials_admin()
def issue_credly_badge(credly_api, **kwargs):
badge_data = flask.request.json
try:
Expand Down

0 comments on commit 725a8ea

Please sign in to comment.