mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-19 04:30:05 +01:00
fix: verifica presenza plugin nei moduli
This commit is contained in:
parent
06ccf1f4b5
commit
250bada432
@ -65,7 +65,13 @@ foreach (App::getAssets()['print'] as $style) {
|
||||
}
|
||||
|
||||
if (Auth::check()) {
|
||||
$has_plugins = Plugin::where('idmodule_to', $id_module)->where('position', 'tab_main')->where('enabled', 1)->count();
|
||||
if ($id_record) {
|
||||
$position = 'tab';
|
||||
} else {
|
||||
$position = 'tab_main';
|
||||
}
|
||||
|
||||
$has_plugins = Plugin::where('idmodule_to', $id_module)->where('position', $position)->where('enabled', 1)->count();
|
||||
|
||||
echo '
|
||||
<script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user