-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #189 from M3nin0/marketplace
marketplace: disable doi minting
- Loading branch information
Showing
5 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
geo_rdm_records/modules/marketplace/services/permissions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2022-2024 GEO Secretariat. | ||
# | ||
# geo-rdm-records is free software; you can redistribute it and/or modify it | ||
# under the terms of the MIT License; see LICENSE file for more details. | ||
|
||
"""GEO Marketplace service permissions.""" | ||
|
||
from invenio_records_permissions.generators import Disable | ||
|
||
from geo_rdm_records.base.services.permissions import BaseGEOPermissionPolicy | ||
|
||
|
||
class MarketplacePermissionPolicy(BaseGEOPermissionPolicy): | ||
"""Access control configuration for marketplace items.""" | ||
|
||
# | ||
# Disabled actions (these should not be used or changed) | ||
# | ||
# Marketplace Items can not have DOIs. | ||
can_pid_create = [Disable()] | ||
can_pid_register = [Disable()] | ||
can_pid_update = [Disable()] | ||
can_pid_discard = [Disable()] | ||
can_pid_delete = [Disable()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters