Feature cross scope role principals (#1199)
* chore: 🤖 add scope column to role principals and group members * chore: 🤖 add recursion and filtering to user and group mocks * feat: 🎸 expose groups and roles on projects * feat: 🎸 enable cross-scope assignment of group members * chore: 🤖 query group members in a single call via filtering * chore: 🤖 query role prinicipals in two calls via filtering * chore: 🤖 use const instead of let * feat: 🎸 support adding cross-scope principals to roles
This commit is contained in:
1 parent
bd0189cf10
commit
c1e1b42672
1 file changed
+5
-3
@@ -20,11 +20,13 @@ export default class ScopesScopeRolesRoleAddPrincipalsRoute extends Route {
|
||||
*/
|
||||
model() {
|
||||
const role = this.modelFor('scopes.scope.roles.role');
|
||||
const { scopeID: scope_id } = role;
|
||||
return hash({
|
||||
role,
|
||||
users: this.store.query('user', { scope_id }),
|
||||
groups: this.store.query('group', { scope_id }),
|
||||
users: this.store.query('user', { scope_id: 'global', recursive: true }),
|
||||
groups: this.store.query('group', {
|
||||
scope_id: 'global',
|
||||
recursive: true,
|
||||
}),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user