Skip to main content Help Control Panel

 

English «   Bug tracker «  

Privacy of uploaded file not honered + solution [Integrated]

Vincent -- on Sep. 3 2008, from on-a-few-hops-from-you

Members are allow to detach and update in contrary what is checked at in /users/configure.php ->tab 'submission', Files is set

WorkflowSupport request
StatusSolution has been fully integrated
  • Submission on Sep. 3 2008 by Bernard
  • Finalization on Sep. 8 2008
Owner Vincent
Progress100%

I check the radiobutton /users/configure.php ->tab 'submission', Files: "Files can be modified only by their original authors, plus associates and editors."

$context['users_without_file_overloads']='R'; is set in /parameters/users.include.php

Reloading configure.php again, the checkbox appeared to have not been set.

I believe the problem can be found after line 496 in /users/configure.php, where the value is set to R instead of Y:

    // control of file overload
    $label = i18n::s('Files');
    $input = '<input type="radio" name="users_without_file_overloads" value="N"';
    if(!isset($context['users_without_file_overloads']) || ($context['users_without_file_overloads'] != 'Y'))
        $input .= ' checked="checked"';
    $input .= '/> '.i18n::s('Any member can update files posted by others.');
    $input .= BR.'<input type="radio" name="users_without_file_overloads" value="R"';
    if(isset($context['users_without_file_overloads']) && ($context['users_without_file_overloads'] == 'Y'))
        $input .= ' checked="checked"';
    $input .= '/> '.i18n::s('Files can be modified only by their original authors, plus associates and editors.');
    $fields[] = array($label, $input);

 

Comments


Vincentfrom on-a-few-hops-from-you
23 posts

on Sep. 3 2008


Changed it on my own site now, and changing the R to Y makes things work as expected. (yacs8.6beta30.31.31)

 


Bernard Paquesfrom nearby-an-airport
Associate, 8372 posts

inspired from vincent on Sep. 7 2008


Vincent: Many thanks for this one, it helps a lot to get both the problem and its solution. This change has been integrated tonight into the core set of scripts.