From 45d6ff669828e5277cb75f71871191fa4d3721c2 Mon Sep 17 00:00:00 2001
From: Garvin Hicking <mail@garv.in>
Date: Sun, 24 Jun 2007 10:49:43 +0000
Subject: [PATCH]     * (beta2) Fix when saving personal configuration the
 userlevel and       "no_create" flags where not properly saved, thanks to
 PHPaws!

---
 docs/NEWS                      | 4 ++++
 include/admin/personal.inc.php | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/NEWS b/docs/NEWS
index 7d83f049..fd307912 100644
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,10 @@
 Version 1.2 ()
 ------------------------------------------------------------------------
 
+    * (beta2) Fix when saving personal configuration the userlevel and 
+      "no_create" flags where not properly saved, thanks to PHPaws!
+      (garvinhicking)
+      
     * When a category or entry does not exist, emit HTTP 404 message
       template instead of "No entries to print" and HTTP 200 status.
       (garvinhicking)
diff --git a/include/admin/personal.inc.php b/include/admin/personal.inc.php
index 953c31aa..36bb4772 100644
--- a/include/admin/personal.inc.php
+++ b/include/admin/personal.inc.php
@@ -63,7 +63,8 @@ if ($serendipity['GET']['adminAction'] == 'save' && serendipity_checkFormToken()
 
                 // Moved to group administration:
                 if ($item['var'] == 'userlevel') continue;
-                
+                if ($item['view'] == 'dangerous') continue;
+
                 if (serendipity_checkConfigItemFlags($item, 'local')) {
                     serendipity_set_user_var($item['var'], $_POST[$item['var']], $serendipity['authorid'], true);
                 }