Skip to content

Commit

Permalink
fix mgmt api users resource (#137)
Browse files Browse the repository at this point in the history
- after core users authorization changes

NHUB-430
  • Loading branch information
petrjasek authored Oct 25, 2023
1 parent ac27b18 commit 3a40c88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/cp/mgmt_api/users.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import newsroom
import superdesk

from bson.objectid import ObjectId
Expand All @@ -6,11 +7,12 @@
from flask import current_app as app


class CPUsersResource(UsersResource):
class CPUsersResource(newsroom.Resource):
url = "users"
schema = UsersResource.schema.copy()
datasource = UsersResource.datasource.copy()
item_methods = ["GET", "PATCH", "PUT", "DELETE"]
resource_methods = ["GET", "POST"]
internal_resource = False


def init_app(app):
Expand Down

0 comments on commit 3a40c88

Please sign in to comment.