mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
add share limit (#2827)
This commit is contained in:
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import { Button } from 'reactstrap';
|
||||
import Select from 'react-select';
|
||||
import makeAnimated from 'react-select/lib/animated';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import { gettext, isPro } from '../../utils/constants';
|
||||
import { seafileAPI } from '../../utils/seafile-api.js';
|
||||
import SharePermissionEditor from '../select-editor/share-permission-editor';
|
||||
|
||||
@@ -101,7 +101,7 @@ class ShareToGroup extends React.Component {
|
||||
};
|
||||
this.options = [];
|
||||
this.permissions = ['rw', 'r', 'cloud-edit', 'preview'];
|
||||
if (this.props.isGroupOwnedRepo) {
|
||||
if (this.props.isGroupOwnedRepo || !isPro) {
|
||||
this.permissions = ['rw', 'r'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user