Feature cross scope group members (#1196)
* 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
This commit is contained in:
1 parent
31cf696902
commit
94530cec9c
5 files changed
+13
-9
No files matched your search
@@ -26,11 +26,10 @@ export default class ScopesScopeGroupsGroupAddMembersRoute extends Route {
|
||||
* @return {Promise{GroupModel, [UserModel]}}
|
||||
*/
|
||||
model() {
|
||||
const group = this.modelFor('scopes.scope.groups.group');
|
||||
const { scopeID: scope_id } = group;
|
||||
return hash({
|
||||
group: this.modelFor('scopes.scope.groups.group'),
|
||||
users: this.store.query('user', { scope_id }),
|
||||
// load all users from all scopes
|
||||
users: this.store.query('user', { scope_id: 'global', recursive: true }),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user