diff --git a/sections/forums/thread.php b/sections/forums/thread.php
index bdee94aa..e17ef34f 100644
--- a/sections/forums/thread.php
+++ b/sections/forums/thread.php
@@ -362,7 +362,7 @@
if(!$ThreadInfo['IsLocked'] || check_perms('site_moderate_forums')){ ?>
- [Quote]
}
-if (((!$ThreadInfo['IsLocked'] && $LoggedUser['Class'] >= $Forums[$ForumID]['MinClassWrite']) && ($AuthorID == $LoggedUser['ID']) || check_perms('site_moderate_forums'))) { ?>
+if (((!$ThreadInfo['IsLocked'] && check_forumperm($ForumID, 'Write')) && ($AuthorID == $LoggedUser['ID']) || check_perms('site_moderate_forums'))) { ?>
- [Edit]
}
if(check_perms('site_admin_forums') && $ThreadInfo['Posts'] > 1) { ?>