Explorar el Código

check only permission from link-share to decide if public upload is enabled or disabled

tags/v6.0.0alpha2
Bjoern Schiessle hace 10 años
padre
commit
d6771502f2
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      core/js/share.js

+ 3
- 1
core/js/share.js Ver fichero

@@ -177,7 +177,9 @@ OC.Share={
if (allowPublicUploadStatus) {
return true;
}
allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
if (value.share_type === OC.Share.SHARE_TYPE_LINK) {
allowPublicUploadStatus = (value.permissions & OC.PERMISSION_CREATE) ? true : false;
}
});

html += '<input id="shareWith" type="text" placeholder="'+t('core', 'Share with')+'" />';

Cargando…
Cancelar
Guardar