mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 14:14:10 +00:00
Retrieve roles without populating users and permissions relations
This commit is contained in:
parent
5f28916210
commit
59aff0af3c
@ -389,7 +389,9 @@ module.exports = {
|
||||
};
|
||||
|
||||
// Retrieve roles
|
||||
const roles = await strapi.query('role', 'users-permissions').find();
|
||||
const roles = await strapi
|
||||
.query('role', 'users-permissions')
|
||||
.find({}, []);
|
||||
|
||||
// We have to know the difference to add or remove
|
||||
// the permissions entries in the database.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user