mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 09:51:03 -04:00
Nevertheless this causes a huge amount of new warnings. Previously the shell script for directories to lint was wrong it was generating all app names to lint, but was missing the `apps/` prefix. Causing only `core` to be linted. Co-authored-by: Grigorii K. Shartsev <me@shgk.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
34 lines
845 B
JavaScript
34 lines
845 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import axios from '@nextcloud/axios'
|
|
import { generateOcsUrl } from '@nextcloud/router'
|
|
|
|
/**
|
|
* Enable user status automation based on availability
|
|
*/
|
|
export async function enableUserStatusAutomation() {
|
|
return await axios.post(
|
|
generateOcsUrl('/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}', {
|
|
appId: 'dav',
|
|
configKey: 'user_status_automation',
|
|
}),
|
|
{
|
|
configValue: 'yes',
|
|
},
|
|
)
|
|
}
|
|
|
|
/**
|
|
* Disable user status automation based on availability
|
|
*/
|
|
export async function disableUserStatusAutomation() {
|
|
return await axios.delete(
|
|
generateOcsUrl('/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}', {
|
|
appId: 'dav',
|
|
configKey: 'user_status_automation',
|
|
}),
|
|
)
|
|
}
|