[Tickets #1324] NEW: Horde Display Options list all apps for "What application should Horde display after login?"

bugs at bugs.horde.org bugs at bugs.horde.org
Mon Feb 7 11:34:57 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1324
-----------------------------------------------------------------------
 Ticket     | 1324
 Created By | allen.zhao at camilion.com
 Summary    | Horde Display Options list all apps for "What application should Horde display after login?"
 Queue      | Horde Framework Packages
 State      | Unconfirmed
 Priority   | 1. Low
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


allen.zhao at camilion.com (2005-02-07 11:34) wrote:

It should list only the installed apps, whatever we set the apa status to
active or inactive in registry.

Changes:

in lib/prefs.php (rev 1.19) add:
114,117d113
<             // Make sure the app is installed
<             if (!file_exists($registry->get('fileroot', $a))) {
<                 continue;
<             }

After:
    $initial_application_options = array();
    $apps = $registry->listApps(array('active'));
    foreach ($apps as $a) {
        if (($perms->exists($a) && ($perms->hasPermission($a,
Auth::getAuth(), PERMS_READ) || Auth::isAdmin())) ||
            !$perms->exists($a)) {





More information about the bugs mailing list