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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user