mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
* Revert "update share link permission (#2328)"
This reverts commit 6313e54dd7
.
* update share link related UI
Download link(s) to Share link(s)
* update file api
add 'can_preview' and 'can_edit' fields
* update view file page
'invalid extension' to 'File preview unsupported'
* update share popup
1. send file detail request to check if can preview/edit file
2. show or hide share link permission according to api response
3. add tests for can_preview/edit_file func
* use FILEEXT_TYPE_MAP to check if can preview file