]> git.mjollnir.org Git - moodle.git/commitdiff
Bug fixes
authorvyshane <vyshane>
Mon, 25 Sep 2006 13:05:18 +0000 (13:05 +0000)
committervyshane <vyshane>
Mon, 25 Sep 2006 13:05:18 +0000 (13:05 +0000)
mod/forum/discuss.php

index 7dc852b981c0a5ed49da0e70f819c629989cb005..b0ead7880106eedaa8f8c3a84100249d8344641a 100644 (file)
@@ -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!');
         }
     }