diff --git a/frontend-js/src/main/js/map/data/User.js b/frontend-js/src/main/js/map/data/User.js
index 6128f56bbf5aff332df5dacfe0e804bd88083f59..fdccd92f982a38273718678650934804e9f0f9e6 100644
--- a/frontend-js/src/main/js/map/data/User.js
+++ b/frontend-js/src/main/js/map/data/User.js
@@ -217,11 +217,11 @@ User.prototype.update = function (user) {
   return self.callListeners("onreload");
 };
 
-User.prototype.setTermsOfUseConsent = function(termsOfUseConsent) {
+User.prototype.setTermsOfUseConsent = function (termsOfUseConsent) {
   this._termsOfUseConsent = termsOfUseConsent;
 };
 
-User.prototype.isTermsOfUseConsent = function() {
+User.prototype.isTermsOfUseConsent = function () {
   return this._termsOfUseConsent;
 };
 
diff --git a/persist/src/db/12.0.0~beta.3/fix_db_20180530.sql b/persist/src/db/12.0.0~beta.3/fix_db_20180530.sql
new file mode 100644
index 0000000000000000000000000000000000000000..34df169876c1b75b06931f46b6cadda9e0832352
--- /dev/null
+++ b/persist/src/db/12.0.0~beta.3/fix_db_20180530.sql
@@ -0,0 +1,2 @@
+-- there is problem with privileges with new API
+update privilege_table set privilege_class_type_db ='OBJECT_PRIVILEGE' where type = 'LAYOUT_MANAGEMENT';
\ No newline at end of file