Skip to content

Commit

Permalink
FIxes for bug 2379 (merged from stable)
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 13, 2005
1 parent 39f6559 commit 32503db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions course/recent.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@

} else { // you chose a group of activities

if (isteacher($user)) {
if (isteacher($course->id)) {
$hiddenfilter = "";
} else {
$hiddenfilter = " AND cs.visible = '1' ";
Expand All @@ -135,7 +135,7 @@
$activityfilter = "";
}

if (isteacher($user)) {
if (isteacher($course->id)) {
$hiddenfilter = "";
} else {
$hiddenfilter = " AND cm.visible = '1' ";
Expand Down Expand Up @@ -231,7 +231,7 @@

$section = 0;

if (isteacher($user)) {
if (isteacher($course->id)) {
$teacher = true;
} else {
$teacher = false;
Expand Down
2 changes: 1 addition & 1 deletion mod/assignment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)

}

if (isteacher($USER)) {
if (isteacher($course)) {
$grades = "(" . $activity->content->grade . " / " . $activity->content->maxgrade . ") ";

$assignment->id = $activity->instance;
Expand Down

0 comments on commit 32503db

Please sign in to comment.