mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Set user admin max results and Keycloak sync option
This commit is contained in:
parent
2c8b757ff6
commit
351b8dcc12
13 changed files with 100 additions and 31 deletions
|
@ -16,7 +16,6 @@ import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-rout
|
|||
|
||||
export default Route.extend(AuthenticatedRouteMixin, {
|
||||
userService: service('user'),
|
||||
global: service('global'),
|
||||
appMeta: service(),
|
||||
|
||||
beforeModel () {
|
||||
|
@ -27,19 +26,9 @@ export default Route.extend(AuthenticatedRouteMixin, {
|
|||
|
||||
model() {
|
||||
return new EmberPromise((resolve) => {
|
||||
let constants = this.get('constants');
|
||||
|
||||
if (this.get('appMeta.authProvider') == constants.AuthProvider.Keycloak) {
|
||||
this.get('global').syncExternalUsers().then(() => {
|
||||
this.get('userService').getComplete('').then((users) =>{
|
||||
resolve(users);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
this.get('userService').getComplete('').then((users) => {
|
||||
resolve(users);
|
||||
});
|
||||
}
|
||||
this.get('userService').getComplete('', 100).then((users) => {
|
||||
resolve(users);
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue