1 (edited by 2009-03-31 06:02:53)

Topic: [BUG] Commenters can't save 'personal options'

Name: Commenters can't save 'personal options'
Author: FUNimations
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: Registered users with a 'commenter' userlevel are presumed to change their 'personal options'. However due to a fault in the code, commenters can't access the page where the new information is saved.
in /inc/options.mdu find

if($member_db[1] == 4 and ($action != 'personal' and $action != 'options')){ msg('error', 'Error!', 'Access Denied for your user-level (commenter)'); }

replace with

if($member_db[1] == 4 and (!in_array($action, array('personal','options','dosavepersonal')))){ msg('error', 'Error!', 'Access Denied for your user-level (commenter)'); }