Skip to content

Commit

Permalink
Merge pull request #1511 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
[PATCH] Make org merge admin only
  • Loading branch information
MZaFaRM authored Nov 3, 2023
2 parents 022f04b + 8ff4f14 commit 4f26697
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/dashboard/organisation/organisation_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,9 @@ def get(self, request, org_code):


class OrganizationMergerView(APIView):
permission_classes = [CustomizePermission]

@role_required([RoleType.ADMIN.value])
def patch(self, request, organisation_id):
try:
destination = Organization.objects.get(pk=organisation_id)
Expand Down

0 comments on commit 4f26697

Please sign in to comment.