From: João Pedro Athayde Marcondes de André Date: Fri, 18 Mar 2011 09:51:58 +0000 (+0100) Subject: Add concept of responsible group for the connected level X-Git-Url: http://git.polytechnique.org/?p=dotclear.git;a=commitdiff_plain;h=a2190bbbbe63d6cf9beabe1d08e6413400a9be35 Add concept of responsible group for the connected level --- diff --git a/class.xorg.auth.php b/class.xorg.auth.php index ec5f9ba..e2290b8 100644 --- a/class.xorg.auth.php +++ b/class.xorg.auth.php @@ -95,7 +95,7 @@ class xorgAuth extends dcAuth { $this->killSession(); return; } - if (($type == 'group-admin' || $type == 'group-member') && $level == 'admin') { + if (($type == 'group-admin' || $type == 'group-member' || $type == 'connected') && $level == 'admin') { $perms = array('usage' => true, 'contentadmin' => true, 'admin' => true); @@ -139,7 +139,7 @@ class xorgAuth extends dcAuth { $url .= "&challenge=" . $_SESSION["auth-x-challenge"]; $url .= "&pass=" . md5($_SESSION["auth-x-challenge"] . XORG_AUTH_KEY); $type = $core->blog->settings->xorgauth->get('xorg_blog_type'); - if ($type == 'group-member' || $type == 'group-admin') { + if ($type == 'group-member' || $type == 'group-admin' || $type == 'connected') { $url .= '&group=' . $core->blog->settings->xorgauth->get('xorg_blog_owner'); } $url .= "&url=" . urlencode($core->blog->url . "auth/XorgReturn?path=" . $path);