summaryrefslogtreecommitdiffstats
path: root/core/src/OC/capabilities.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/capabilities.js')
-rw-r--r--core/src/OC/capabilities.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/OC/capabilities.js b/core/src/OC/capabilities.js
index c7df9b4f3d1..72a71d7c743 100644
--- a/core/src/OC/capabilities.js
+++ b/core/src/OC/capabilities.js
@@ -32,6 +32,6 @@ import { getCapabilities as realGetCapabilities } from '@nextcloud/capabilities'
* @since 14.0.0
*/
export const getCapabilities = () => {
- console.warn('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities')
+ OC.debug && console.warn('OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities')
return realGetCapabilities()
}