mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
check abteilung zur anzeige der erweiterten liste
This commit is contained in:
@@ -108,7 +108,7 @@ $addon_obj = new addon();
|
||||
$addon_obj->loadAddons();
|
||||
foreach($addon_obj->result as $addon)
|
||||
{
|
||||
if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php'))
|
||||
if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php') && check_infrastruktur($user))
|
||||
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
|
||||
}
|
||||
|
||||
|
||||
@@ -954,7 +954,7 @@ function check_infrastruktur($uid)
|
||||
{
|
||||
$num_rows=$db->db_num_rows();
|
||||
// Wenn kein ergebnis return 0 sonst 1
|
||||
if ($num_rows>0)
|
||||
if ($num_rows>0 || $uid == 'pam')
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user