[dev] "Add Content" in services/portal/index.php

august huber gus at pbx.org
Sat Feb 18 18:30:59 PST 2006


I am currently patching my installs as such when I update, wondering if
it makes sense to only show "Add Content" if showService('options')
returns true.

cheers,

--

	august huber <gus at pbx.org>
	pbx labs (+1.212.464.7306)


--- horde/services/portal/index.org     2006-02-18 19:25:09.000000000 -0700
+++ horde/services/portal/index.php     2006-02-18 19:25:19.000000000 -0700
@@ -67,7 +67,7 @@
 require HORDE_TEMPLATES . '/menu/menu.inc';
 echo '<div id="menuBottom">';
 echo htmlspecialchars($fullname);
-if (!$prefs->isLocked('portal_layout')) {
+if (!$prefs->isLocked('portal_layout') && Horde::showService('options')) {
     echo ' | <a href="' .
Horde::applicationUrl('services/portal/edit.php') . '">' . _("Add
Content") . '</a>';
 }
 echo '</div><br class="clear" />';


More information about the dev mailing list