• Nigel McNie's avatar
    (#3416) Allow site files to be exported by users too. · d4f0e071
    Nigel McNie authored
    
    
    This change involves relaxing the check that artefacts can only be
    exported if they're owned by the user (naturally, site files are not).
    Unfortunately, there's no easy replacement check that I can drop in to
    continue to guarantee security. $user->can_view_artefact has two
    problems: doesn't respect site files, and is slow.
    
    I added a commented out hypothetical permission checking block and a
    comment as to why it wasn't uncommented.
    Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
    d4f0e071