Ghost/ghost/admin/mirage/config/roles.js
Sanne de Vries 2e8109d05f Clarified staff user roles in Admin (#1874)
refs https://github.com/TryGhost/Team/issues/572

- Replaced dropdown in invite-user modal with radio buttons
- Added description for each user role
- Added icon to provide more info on hover for each role
- Got rid of unused box styling
2021-04-07 15:20:30 +01:00

10 lines
252 B
JavaScript

export default function mockRoles(server) {
server.get('/roles/', function ({roles}, {queryParams}) {
if (queryParams.permissions === 'assign') {
return roles.find([1, 2, 3, 5]);
}
return roles.all();
});
}