1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

update share dept repo

add 'cloud-edit', 'preview' permission
support 'cloud-edit', 'preview' and custom permission when modify share
This commit is contained in:
lian
2022-07-13 16:40:15 +08:00
parent 3371d5cb5b
commit 9a962255f0
3 changed files with 58 additions and 29 deletions

View File

@@ -124,9 +124,12 @@ class ShareToGroup extends React.Component {
} else if (itemType === 'dir') {
this.permissions = ['rw', 'r', 'cloud-edit', 'preview'];
}
if (this.props.isGroupOwnedRepo || !isPro) {
if (!isPro) {
this.permissions = ['rw', 'r'];
}
if (this.props.isGroupOwnedRepo) {
this.permissions = ['rw', 'r', 'cloud-edit', 'preview'];
}
}
handleSelectChange = (option) => {

View File

@@ -154,9 +154,12 @@ class ShareToUser extends React.Component {
} else if (this.props.itemType === 'dir') {
this.permissions = ['rw', 'r', 'cloud-edit', 'preview'];
}
if (this.props.isGroupOwnedRepo || !isPro) {
if (!isPro) {
this.permissions = ['rw', 'r'];
}
if (this.props.isGroupOwnedRepo) {
this.permissions = ['rw', 'r', 'cloud-edit', 'preview'];
}
}
handleSelectChange = (option) => {