mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 10:23:34 +00:00
Fix relations are not populated if API key is read-only
Signed-off-by: harimkims <harimkims@gmail.com>
This commit is contained in:
parent
4497124c87
commit
a926999b29
@ -60,7 +60,8 @@ const verify = (auth, config) => {
|
||||
* scopes. If the route has no scope, then you can't get access to it.
|
||||
*/
|
||||
|
||||
if (config.scope && config.scope.every(isReadScope)) {
|
||||
const scopes = Array.isArray(config.scope) ? config.scope : [config.scope];
|
||||
if (config.scope && scopes.every(isReadScope)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user