From 6ecedb484ad2dc1b7ebf6e01b89dc957e7bab238 Mon Sep 17 00:00:00 2001 From: Petr Jasek Date: Wed, 25 Oct 2023 08:25:00 +0200 Subject: [PATCH] fix mgmt api users resource - after core users authorization changes NHUB-430 --- server/cp/mgmt_api/users.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/cp/mgmt_api/users.py b/server/cp/mgmt_api/users.py index da7f270..5f61cd5 100644 --- a/server/cp/mgmt_api/users.py +++ b/server/cp/mgmt_api/users.py @@ -1,3 +1,4 @@ +import newsroom import superdesk from bson.objectid import ObjectId @@ -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):