prefs locking

Max Kalika max@the-triumvirate.net
Tue, 27 Feb 2001 07:24:21 -0800


Greetings,

Currently if some prefs are locked, they still show up in the options screens.  
Does anyone see anything wrong with this?  (I verified that it worked locally)

@@ -231,11 +231,13 @@
-        switch ($_prefs[$pref]['type']) {
-        case 'implicit':
-            break;
-            
-        case 'special':
-            include $conf['paths']['templates'] . "/prefs/$pref.inc";
-            break;
-        
-        default:
-            include $conf['horde']['paths']['templates'] . '/prefs/' . $_prefs
[$pref]['type'] . '.inc';
-            break;
+        if (!isset($_prefs[$pref]['locked']) || !$_prefs[$pref]['locked']) {
+            switch ($_prefs[$pref]['type']) {
+            case 'implicit':
+                break;
+
+            case 'special':
+                include $conf['paths']['templates'] . "/prefs/$pref.inc";
+                break;
+
+            default:
+                include $conf['horde']['paths']['templates'] . '/prefs/' . 
$_prefs[$pref]['type'] . '.inc';
+                break;
+            }

--mk23