You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a collection administrator (that isn't administrator) tries to edit an item template on a collection, it will get an "Access is denied" message.
To Reproduce
Steps to reproduce the behavior:
With DSpace 7.5
Firstly have an colletion's item template created.
Associate a user (without administrator permissions) as collection Admin
Log in as that collection's admin user
Try to edit the item template that is associated with the colletion and save
You will obtain "Access is denied" error message
Expected behavior
The collection's admin user should be able to edit the associated item template.
Other details
DSpace log error message:
2023-05-08 09:38:40,899 INFO c929504a-9345-4c7f-8df6-8eb0608ac5f3 604707f6-5f51-4938-9bb7-20bdaee695c2 org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request [PATCH /server/api/core/itemtemplates/66fea90e-bcab-47e2-bc8c-6e9ad49770ee] originated from /collections/6f403972-e021-4a49-930d-1c26ae77b2d7/itemtemplate
2023-05-08 09:38:40,902 WARN c929504a-9345-4c7f-8df6-8eb0608ac5f3 604707f6-5f51-4938-9bb7-20bdaee695c2 org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ Access is denied (status:403 exception: Acesso negado at: org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:73))
{"timestamp":"2023-05-08T09:39:38.965+00:00","status":403,"error":"Forbidden","message":"Access is denied","path":"/server/api/core/itemtemplates/66fea90e-bcab-47e2-bc8c-6e9ad49770ee"}
The text was updated successfully, but these errors were encountered:
@buithaihai : Thanks! Please be aware that, if you'd like this to be included in 7.6, we'd need a very quick fix. All code going into 7.6 needs to be fully reviewed/merged if possible by June 9.
Describe the bug
If a collection administrator (that isn't administrator) tries to edit an item template on a collection, it will get an "Access is denied" message.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The collection's admin user should be able to edit the associated item template.
Other details
DSpace log error message:
Request Header:
Request:
Response:
The text was updated successfully, but these errors were encountered: