Bug – 1.4.3.3 – permissions check when editing comment
-
In \inc\Handle.php line 247 you are incorrectly checking permissions when adding a comment:
if ( !dwqa_current_user_can( 'You do not have permission to edit answer.' ) ) { dwqa_add_notice( __( 'You do not have permission to edit comment.', 'dwqa' ), 'error' ); }It should be:
if ( !dwqa_current_user_can( 'edit_comment' ) ) { dwqa_add_notice( __( 'You do not have permission to edit comment.', 'dwqa' ), 'error' ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Bug – 1.4.3.3 – permissions check when editing comment’ is closed to new replies.