mirror of
https://github.com/documize/community.git
synced 2025-08-04 13:05:23 +02:00
Capture LDAP configuration
This commit is contained in:
parent
fd167234ae
commit
1ce7e53398
15 changed files with 647 additions and 714 deletions
|
@ -106,6 +106,19 @@ export default Service.extend({
|
|||
}
|
||||
},
|
||||
|
||||
previewLDAP(config) {
|
||||
if(this.get('sessionService.isAdmin')) {
|
||||
return this.get('ajax').request(`global/sync/ldap/preview`, {
|
||||
method: 'POST',
|
||||
data: JSON.stringify(config)
|
||||
}).then((response) => {
|
||||
return response;
|
||||
}).catch((error) => {
|
||||
return error;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// Returns product license.
|
||||
searchStatus() {
|
||||
if (this.get('sessionService.isGlobalAdmin')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue