فهرست منبع

fixed BUG in Storage refresh object acl cache

Piotr Labudda 8 سال پیش
والد
کامیت
84fe019d2e
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      SE/se-lib/Schema/SystemObjectStorageAcl.php

+ 4 - 1
SE/se-lib/Schema/SystemObjectStorageAcl.php

@@ -164,7 +164,10 @@ class Schema_SystemObjectStorageAcl extends Core_AclSimpleSchemaBase {
 						");
 						DB::getPDO()->execSql("
 							insert into `{$this->_rootTableName}` (namespace, idZasob, idDatabase, description, hasStruct)
-							select concat('{$source['nsPrefix']}/', t.`DESC`) as namespace
+							select IF(t.`DESC` like 'default_db/%',
+									t.`DESC`,
+									concat('{$source['nsPrefix']}/', t.`DESC`)
+								) as namespace
 								, t.ID as idZasob
 								, '{$source['idZasob']}' as idDatabase
 								, t.`OPIS` as description