Skip to content

Commit

Permalink
moderation: fix admin record / draft links
Browse files Browse the repository at this point in the history
* Fix admin user lists show no results
* Closes inveniosoftware/invenio-app-rdm#2721
* No need to change moderation links as they are functional
  • Loading branch information
Samk13 committed Jun 27, 2024
1 parent a096f9e commit 6e9a311
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions invenio_users_resources/services/users/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# Copyright (C) 2022 TU Wien.
# Copyright (C) 2022 CERN.
# Copyright (C) 2024 KTH Royal Institute of Technology.
#
# Invenio-Users-Resources is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
Expand Down Expand Up @@ -194,10 +195,12 @@ class UsersServiceConfig(RecordServiceConfig, ConfiguratorMixin):
"avatar": Link("{+api}/users/{id}/avatar.svg"),
"records_html": Link("{+ui}/search/records?q=user:{id}"),
"admin_records_html": Link(
"{+ui}/administration/records?q=user:{id}&f=allversions", when=can_manage
"{+ui}/administration/records?q=parent.access.owned_by.user:{id}&f=allversions",
when=can_manage,
),
"admin_drafts_html": Link(
"{+ui}/administration/drafts?q=user:{id}&f=allversions", when=can_manage
"{+ui}/administration/drafts?q=parent.access.owned_by.user:{id}&f=allversions",
when=can_manage,
),
"admin_moderation_html": Link(
"{+ui}/administration/moderation?q=topic.user:{id}", when=can_manage
Expand Down

0 comments on commit 6e9a311

Please sign in to comment.