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
{{ message }}
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
For implementation data-tools addon on react-frontend, restoreEntities endpoint was implemented to restore soft-deleted records (jmix-projects/jmix-datatools#44). When trying to send this request with administrator credentials, it is rejected with permission error: Request payload:
{
"errors": [
{
"message": "User is not allowed to use query: restoreEntities",
"extensions": {
"classification": "ExecutionAborted"
}
}
]
}
Project info:
plugins {
id 'io.jmix' version '1.1.0-M5'
id 'java'
}
jmix {
bomVersion = '1.1.0-SNAPSHOT'
projectId = 'scr'
}
Solution:
Add @GraphQLPolicy(operations = "*") or @GraphQLPolicy(operations = "restoreEntities") to role.
Created GraphQLFullAccessRole in commit in separate branch.
Environment:
https://github.com/jmix-projects/scr-jmix
Problem:
For implementation data-tools addon on react-frontend, restoreEntities endpoint was implemented to restore soft-deleted records (jmix-projects/jmix-datatools#44). When trying to send this request with administrator credentials, it is rejected with permission error:
Request payload:
Response:
Project info:
Solution:
Add
@GraphQLPolicy(operations = "*")
or@GraphQLPolicy(operations = "restoreEntities")
to role.Created GraphQLFullAccessRole in commit in separate branch.
UPDATE 2021-11-17:
The text was updated successfully, but these errors were encountered: