mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
2e8109d05f
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
10 lines
252 B
JavaScript
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();
|
|
});
|
|
}
|