Giving non admin browse server rights

We ran into this problem when we gave a customer of ours admin rights but with some restrictions. He was missing the server tab on all image upload fields.

What we did to fix this is, in admin/common_templates/fileuploader.tpl
at line 58, we changed
        {if !($hide_server || "COMPANY_ID"|defined || "RESTRICTED_ADMIN"|defined)}
            <a onclick="fileuploader.show_loader(this.id);" id="server_{$id_var_name}">{$lang.server}</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        {/if}
to

        {if !($hide_server || "COMPANY_ID"|defined )}
            <a onclick="fileuploader.show_loader(this.id);" id="server_{$id_var_name}">{$lang.server}</a>&nbsp;&nbsp;|&nbsp;&nbsp;
        {/if}

Then if you want the server browser popup to go straight to the images folder so they don't delete anything by accident, change
js/editors/tinymce.editor.js at line 51
                        'current_location': current_location + '/',
to

                        'current_location': current_location + '/images',

USE AT YOUR OWN RISK


Loading...