From 7fa8296f0142b2d929ff35555929a4d0a12cbc31 Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 25 Sep 2006 13:05:18 +0000 Subject: [PATCH] Bug fixes --- mod/forum/discuss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index 7dc852b981..b0ead78801 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -47,7 +47,7 @@ if (!empty($move)) { - if (has_capability('mod/forum:movediscussions', $modcontext)) { + if (!has_capability('mod/forum:movediscussions', $modcontext)) { error("You do not have the permission to move this discussion!"); } if ($forum = get_record("forum", "id", $move)) { @@ -74,7 +74,7 @@ 'destination forum(s) - check your file permissionsforums'); } } else { - error("You can't move to that forum - it doesn't exist!"); + error('You can't move to that forum - it doesn't exist!'); } } -- 2.39.5