Owner of user blogs are free to choose writers.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 31 May 2008 22:23:43 +0000 (00:23 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 31 May 2008 22:23:43 +0000 (00:23 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
class.xorg.auth.php

index 670363e..33a5461 100644 (file)
@@ -90,8 +90,10 @@ class xorgAuth extends dcAuth {
       $perms = array('usage' => true,
                      'contentadmin' => true,
                      'admin' => true);
-    } else {
+    } else if ($type != 'user') {
       $perms = array();
+    } else {
+      return;
     }
     $core->setUserBlogPermissions($_SESSION['auth-xorg'],
                                   $blog->id,