Skip to content

Commit

Permalink
Removed some tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 6, 2006
1 parent c3768df commit d4649c7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/accesslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,11 @@ function load_user_capability($capability='', $context ='', $userid='') {
SUM(rc.permission) AS sum
FROM
{$CFG->prefix}role_assignments AS ra,
{$CFG->prefix}role_capabilities AS rc,
{$CFG->prefix}context AS c1
{$CFG->prefix}role_capabilities AS rc,
{$CFG->prefix}context AS c1
WHERE
ra.contextid=c1.id AND
ra.roleid=rc.roleid AND
ra.contextid=c1.id AND
ra.roleid=rc.roleid AND
ra.userid=$userid AND
$searchcontexts1
rc.contextid=$siteinstance->id
Expand All @@ -487,10 +487,10 @@ function load_user_capability($capability='', $context ='', $userid='') {
{$CFG->prefix}context AS c1,
{$CFG->prefix}context AS c2
WHERE
ra.contextid=c1.id AND
ra.roleid=rc.roleid AND
ra.userid=$userid AND
rc.contextid=c2.id AND
ra.contextid=c1.id AND
ra.roleid=rc.roleid AND
ra.userid=$userid AND
rc.contextid=c2.id AND
$searchcontexts1
$searchcontexts2
rc.contextid != $siteinstance->id
Expand Down

0 comments on commit d4649c7

Please sign in to comment.