fix settings page for non-admin users
This commit is contained in:
parent
141ffbb1f5
commit
7d3ae7ae9b
|
@ -206,9 +206,9 @@ class OC_TEMPLATE{
|
||||||
$page->assign('searchbox', $search->fetchPage());
|
$page->assign('searchbox', $search->fetchPage());
|
||||||
// Add menu data
|
// Add menu data
|
||||||
if( OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){
|
if( OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){
|
||||||
$page->assign( "settingsnavigation", OC_APP::getSettingsNavigation());
|
$page->assign( "adminnavigation", OC_APP::getAdminNavigation());
|
||||||
}
|
}
|
||||||
$page->assign( "adminnavigation", OC_APP::getAdminNavigation());
|
$page->assign( "settingsnavigation", OC_APP::getSettingsNavigation());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,14 +33,16 @@
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php foreach($_['adminnavigation'] as $entry):?>
|
<?php if(isset($_['adminnavigation'])):?>
|
||||||
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
|
<?php foreach($_['adminnavigation'] as $entry):?>
|
||||||
<?php if( sizeof( $entry["subnavigation"] )): ?>
|
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
|
||||||
<?php foreach($entry["subnavigation"] as $subentry):?>
|
<?php if( sizeof( $entry["subnavigation"] )): ?>
|
||||||
<li><a style="background-color:#FF8800;" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
|
<?php foreach($entry["subnavigation"] as $subentry):?>
|
||||||
<?php endforeach; ?>
|
<li><a style="background-color:#FF8800;" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endforeach; ?>
|
||||||
<?php endforeach; ?>
|
<?php endif; ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue