[dev] patch -- frameset menu
Ben Chavet
ben at chavet.net
Tue Jan 27 11:25:47 PST 2004
Correct me if I'm wrong, but shouldn't the menu display any applications that
the user has SHOW priveleges to? If so, here is a patch to fix it.
Files modified:
horde/services/portal/menu.php
--Ben
-------------- next part --------------
Index: menu.php
===================================================================
RCS file: /repository/horde/services/portal/menu.php,v
retrieving revision 2.67
diff -u -r2.67 menu.php
--- menu.php 27 Jan 2004 03:48:56 -0000 2.67
+++ menu.php 27 Jan 2004 19:20:32 -0000
@@ -31,7 +31,7 @@
if ((Auth::isAdmin() &&
($params['status'] == 'active' ||
$params['status'] == 'admin')) ||
- (($perms->exists($app) ? $perms->hasPermission($app, Auth::getAuth(), PERMS_READ) : Auth::getAuth()) &&
+ (($perms->exists($app) ? $perms->hasPermission($app, Auth::getAuth(), PERMS_SHOW) : Auth::getAuth()) &&
$params['status'] == 'active')) {
$children[$params['menu_parent']][$app] = $params;
} else {
More information about the dev
mailing list