Is needed by pr https://github.com/openstad/openstad-management-panel/pull/68
Added the {withRelated userRoles} to the client.js, making it possible to fetch all userroles that belong to the given client.
Userroles can be filtered by using the given params ?withUserRoles=1&excludingRoles=admin,member,etc
Please include
Added the {withRelated userRoles} to the client.js
Added relation userRoles to the client bookshelf model in auth/models/index.js.
Type of change
Feature
Documentation
Userroles can be filtered by using the given params ?withUserRoles=1&excludingRoles=admin,member,etc
Is the documentation updated, maybe a link
Tests
Tested using insomnia on route /api/admin/client/{a client id}?withUserRoles=1&excludingRoles=admin
Description
Is needed by pr https://github.com/openstad/openstad-management-panel/pull/68 Added the {withRelated userRoles} to the client.js, making it possible to fetch all userroles that belong to the given client. Userroles can be filtered by using the given params ?withUserRoles=1&excludingRoles=admin,member,etc
Please include
Type of change
Feature
Documentation
Userroles can be filtered by using the given params ?withUserRoles=1&excludingRoles=admin,member,etc
Is the documentation updated, maybe a link
Tests
Tested using insomnia on route /api/admin/client/{a client id}?withUserRoles=1&excludingRoles=admin