Fix for #2142 - when trying to add a user in the Web, get ACCESS DENIED.

This commit is contained in:
paul 2007-01-29 18:13:12 +00:00
parent 5ff2576e24
commit 8719ce2a09
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ class Alib {
$q_from = $CC_CONFIG['permTable']." p ";
// joins for solving users/groups:
$q_join = "LEFT JOIN ".$CC_CONFIG['subjTable']." s ON s.id=p.subj ";
$q_join .= "LEFT JOIN .".$CC_CONFIG['smembTable']." m ON m.gid=p.subj ";
$q_join .= "LEFT JOIN ".$CC_CONFIG['smembTable']." m ON m.gid=p.subj ";
$q_cond = "p.action in('_all', '$action') AND
(s.id=$sid OR m.uid=$sid) ";
// coalesce -1 for higher priority of nongroup rows: