mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +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:
@@ -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) => {
|
||||
|
Reference in New Issue
Block a user