1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00

Modify department group judgment conditions (#2875)

This commit is contained in:
杨顺强
2019-01-23 14:12:13 +08:00
committed by Daniel Pan
parent c0f835144c
commit 4b4233ebb9

View File

@@ -29,8 +29,6 @@ const propTypes = {
groupID: PropTypes.string,
};
const DEPARETMENT_GROUP_ONWER_NAME = 'system admin';
class GroupView extends React.Component {
constructor(props) {
@@ -78,7 +76,7 @@ class GroupView extends React.Component {
let emptyTip = this.getEmptyTip(currentGroup);
let isStaff = currentGroup.admins.indexOf(username) > -1; //for item operations
let isOwner = currentGroup.owner === username ? true : false;
let isDepartmentGroup = currentGroup.owner === DEPARETMENT_GROUP_ONWER_NAME;
let isDepartmentGroup = currentGroup.parent_group_id !== 0;
this.setState({
emptyTip: emptyTip,
currentGroup: currentGroup,