Added a is_layer template variable in order to show/hide custom layer permissions in upload layer/document
Managing default layer permissions causing a problem when uploading