Skip to content

Commit

Permalink
permission: change inheritance
Browse files Browse the repository at this point in the history
* to remove slightly the dependency on rdm-records

* to not silently include permissions from rdm-records

* if a permission is not set in lom it is disabled by default
  • Loading branch information
utnapischtim committed Jul 16, 2024
1 parent 5e16a50 commit e74c90b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_records_lom/services/permissions/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
IfRestricted,
RecordOwners,
)
from invenio_rdm_records.services.permissions import RDMRecordPermissionPolicy
from invenio_records_permissions.generators import (
AnyUser,
AuthenticatedUser,
IfConfig,
SystemProcess,
)
from invenio_records_permissions.policies.records import RecordPermissionPolicy

from .generators import OERCertifiedUsers, OERCurators


class LOMRecordPermissionPolicy(RDMRecordPermissionPolicy):
class LOMRecordPermissionPolicy(RecordPermissionPolicy):
"""Flask-principal style permissions for LOM record services.
Note that the invenio_access.Permission parent-class always adds
Expand Down

0 comments on commit e74c90b

Please sign in to comment.