mirror of
https://github.com/nextcloud/server.git
synced 2026-05-16 10:30:10 -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>
27 lines
651 B
TypeScript
27 lines
651 B
TypeScript
/**
|
|
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import { translate as t } from '@nextcloud/l10n'
|
|
|
|
export const unlimitedQuota = {
|
|
id: 'none',
|
|
label: t('settings', 'Unlimited'),
|
|
}
|
|
|
|
export const defaultQuota = {
|
|
id: 'default',
|
|
label: t('settings', 'Default quota'),
|
|
}
|
|
|
|
/**
|
|
* Return `true` if the logged in user does not have permissions to view the
|
|
* data of `user`
|
|
* @param user
|
|
* @param user.id
|
|
*/
|
|
export const isObfuscated = (user: { id: string, [key: string]: unknown }) => {
|
|
const keys = Object.keys(user)
|
|
return keys.length === 1 && keys.at(0) === 'id'
|
|
}
|