mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
cloud-edit fix
This commit is contained in:
@@ -502,7 +502,8 @@ class MarkdownEditor extends React.Component {
|
|||||||
seafileAPI.getFileContent(downLoadUrl).then((res) => {
|
seafileAPI.getFileContent(downLoadUrl).then((res) => {
|
||||||
const contentLength = res.data.length;
|
const contentLength = res.data.length;
|
||||||
let isBlankFile = (contentLength === 0 || contentLength === 1);
|
let isBlankFile = (contentLength === 0 || contentLength === 1);
|
||||||
let hasPermission = (this.state.fileInfo.permission === 'rw');
|
let permission = this.state.fileInfo.permission;
|
||||||
|
let hasPermission = (permission === 'rw' || permission === 'cloud-edit');
|
||||||
let value = deserialize(res.data);
|
let value = deserialize(res.data);
|
||||||
this.setState({
|
this.setState({
|
||||||
markdownContent: res.data,
|
markdownContent: res.data,
|
||||||
|
Reference in New Issue
Block a user