Skip to main content Help Control Panel

YACS CMS : Open source !

Community «   Discussion forum «   Bug tracker «  

Privacy of uploaded file not honered + solution [Solved]

avatar 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

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);

 

Solution Manager: Vincent

Solution has been fully integrated
Vincent
avatar
from on-a-few-hops-from-you
21 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
avatar
from nearby-an-airport
Associate, 7053 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.

 
Share
Information channels
Recent files