|
|
@@ -411,6 +411,7 @@ jQuery(document).ready(function() {
|
|
|
$lastProcesyFiltrIds = $treeProcesyFilter->get_arg('filtr_id');
|
|
|
|
|
|
$menuProcesViewedTblId = 0;
|
|
|
+ $menuProcesViewedAclIsObject = false;
|
|
|
if ('ViewTableAjax' == V::get('_route', '', $_REQUEST)) {
|
|
|
$namespace = V::get('namespace', '', $_REQUEST, 'word');
|
|
|
if (!$namespace) {
|
|
|
@@ -420,6 +421,10 @@ jQuery(document).ready(function() {
|
|
|
}
|
|
|
}
|
|
|
if ($namespace) {
|
|
|
+ $menuProcesViewedAclIsObject = (
|
|
|
+ 'default_db/' === substr($namespace, 0, strlen('default_db/'))
|
|
|
+ && strpos(substr($namespace, strlen('default_db/')), '/') > 0
|
|
|
+ );
|
|
|
$zasobTableName = (
|
|
|
'default_db/' === substr($namespace, 0, strlen('default_db/'))
|
|
|
&& false === strpos(substr($namespace, strlen('default_db/')), '/')
|
|
|
@@ -672,7 +677,12 @@ jQuery(document).ready(function() {
|
|
|
<?php endif; ?>
|
|
|
<?php if ($menuProcesViewedTblId > 0) : ?>
|
|
|
<li>
|
|
|
- <a href="procesy5.php?task=CRM_LISTA_ZASOBOW&filtr_id=<?= $menuProcesViewedTblId; ?>&filtr_ids=%2B&filtr_ob=%2B" title="Struktura aktualnie przeglądanej tabeli">Struktura aktualnie przeglądanej tabeli</a>
|
|
|
+ <a href="procesy5.php?task=CRM_LISTA_ZASOBOW&filtr_id=<?= $menuProcesViewedTblId; ?>&filtr_ids=%2B&filtr_ob=%2B">Struktura aktualnie przeglądanej tabeli</a>
|
|
|
+ </li>
|
|
|
+ <?php endif; ?>
|
|
|
+ <?php if ($menuProcesViewedTblId > 0 && User::get('ADM_ADMIN_LEVEL') < 2 && $menuProcesViewedAclIsObject) : ?>
|
|
|
+ <li>
|
|
|
+ <a href="index.php?_route=Storage_AclStruct&namespace=<?= $namespace; ?>">Struktura aktualnie przeglądanego obiektu (Storage)</a>
|
|
|
</li>
|
|
|
<?php endif; ?>
|
|
|
<li>
|