summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-14 10:06:17 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-14 10:07:56 +0200
commit2f5df9387d30e33b3903c9ec99ae5661ac1819d8 (patch)
tree317025ae0355a448173a55d0f7fe7f8aa87f9bbb /core/src
parentc2177caf52bb3bdfb95c474bea9d9f66f51d8796 (diff)
downloadnextcloud-server-2f5df9387d30e33b3903c9ec99ae5661ac1819d8.tar.gz
nextcloud-server-2f5df9387d30e33b3903c9ec99ae5661ac1819d8.zip
Deprecate OC.fileIsBlacklisted and move it to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/OC/index.js b/core/src/OC/index.js
index 22d380aa128..6ba517028a2 100644
--- a/core/src/OC/index.js
+++ b/core/src/OC/index.js
@@ -109,6 +109,16 @@ export default {
PERMISSION_UPDATE,
TAG_FAVORITE,
+ /*
+ * Deprecated helpers to be removed
+ */
+ /**
+ * Check if a user file is allowed to be handled.
+ * @param {string} file to check
+ * @deprecated 17.0.0
+ */
+ fileIsBlacklisted: file => !!(file.match(Config.blacklist_files_regex)),
+
addScript,
addStyle,
Apps,