1
0
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:
杨顺强
2019-01-15 10:45:53 +08:00
committed by Daniel Pan
parent fabc8b6134
commit 4fcbe3253d
2 changed files with 4 additions and 4 deletions

View File

@@ -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'];
}
}