While using strapi v4, and acessing the API endpoint
http://localhost:1337/api/users-permissions/permissions
I get the permissions available. Example:
"api::lead": {
"controllers": {
"lead": {
"find": {
"enabled": false,
"policy": ""
},
"findOne": {
"enabled": false,
"policy": ""
},
"create": {
"enabled": false,
"policy": ""
},
"update": {
"enabled": false,
"policy": ""
},
"delete": {
"enabled": false,
"policy": ""
}
}
}
},
But, I would like to get the permission for the current role (administrator, public, etc.)
All the fields returned in the response of the permissions API are false, which does not reflect the reality of my current user role.