diff --git a/core/js/dist/login.js b/core/js/dist/login.js
index 952cfd602ce1cd5d139614a35e3232dd15c9d6aa..11eaa65b417378093b65d7c8b679c9770b18ffe9 100644
Binary files a/core/js/dist/login.js and b/core/js/dist/login.js differ
diff --git a/core/js/dist/login.js.map b/core/js/dist/login.js.map
index 72b3b18e34014fa432d6fb2b09055d22ac1d0f23..08baf2fc31e6f76dc37d8a0820a96a7fb304b0d2 100644
Binary files a/core/js/dist/login.js.map and b/core/js/dist/login.js.map differ
diff --git a/core/js/dist/main.js b/core/js/dist/main.js
index d675dfc7ff4de03bbf818fca12f7aadd2cd6153c..fe28ef59cf72f472fa68b210ff51c7c9e2151166 100644
Binary files a/core/js/dist/main.js and b/core/js/dist/main.js differ
diff --git a/core/js/dist/main.js.map b/core/js/dist/main.js.map
index f0c1d60922ef3f3570f00d220700c54583215e12..62c144ac3389a348a87911131e31d38e285cef91 100644
Binary files a/core/js/dist/main.js.map and b/core/js/dist/main.js.map differ
diff --git a/core/js/js.js b/core/js/js.js
index 556de157e6716f9c9985e50d5ef3e595295052b5..1efa8953c9909398c3743b536b331e770507faa7 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -8,14 +8,6 @@ var OCP = Object.assign({}, window.OCP);
  * @namespace OC
  */
 Object.assign(window.OC, {
-	PERMISSION_NONE:0,
-	PERMISSION_CREATE:4,
-	PERMISSION_READ:1,
-	PERMISSION_UPDATE:2,
-	PERMISSION_DELETE:8,
-	PERMISSION_SHARE:16,
-	PERMISSION_ALL:31,
-	TAG_FAVORITE: '_$!<Favorite>!$_',
 	/* jshint camelcase: false */
 	/**
 	 * Capabilities
diff --git a/core/src/OC/constants.js b/core/src/OC/constants.js
new file mode 100644
index 0000000000000000000000000000000000000000..25482ecb8327c31c9d476c2a0b04a93428602c0f
--- /dev/null
+++ b/core/src/OC/constants.js
@@ -0,0 +1,29 @@
+/*
+ * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software = you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation either version 3 of the
+ * License or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not see <http://www.gnu.org/licenses/>.
+ */
+
+export const PERMISSION_NONE = 0
+export const PERMISSION_CREATE = 4
+export const PERMISSION_READ = 1
+export const PERMISSION_UPDATE = 2
+export const PERMISSION_DELETE = 8
+export const PERMISSION_SHARE = 16
+export const PERMISSION_ALL = 31
+export const TAG_FAVORITE = '_$!<Favorite>!$_'
diff --git a/core/src/OC/index.js b/core/src/OC/index.js
index 345abdf57965a1c807347d85d89937f4fd0b0da6..471d7a182f1f7d0a3c72e37664d500d30e294e2b 100644
--- a/core/src/OC/index.js
+++ b/core/src/OC/index.js
@@ -24,6 +24,16 @@ import {AppConfig, appConfig} from './appconfig'
 import appswebroots from './appswebroots'
 import Backbone from './backbone'
 import Config from './config'
+import {
+	PERMISSION_ALL,
+	PERMISSION_CREATE,
+	PERMISSION_DELETE,
+	PERMISSION_NONE,
+	PERMISSION_READ,
+	PERMISSION_SHARE,
+	PERMISSION_UPDATE,
+	TAG_FAVORITE,
+} from './constants'
 import ContactsMenu from './contactsmenu'
 import Dialogs from './dialogs'
 import EventSource from './eventsource'
@@ -51,6 +61,18 @@ import webroot from './webroot'
 
 /** @namespace OC */
 export default {
+	/*
+	 * Constants
+	 */
+	PERMISSION_ALL,
+	PERMISSION_CREATE,
+	PERMISSION_DELETE,
+	PERMISSION_NONE,
+	PERMISSION_READ,
+	PERMISSION_SHARE,
+	PERMISSION_UPDATE,
+	TAG_FAVORITE,
+
 	Apps,
 	AppConfig,
 	appConfig,