mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 22:01:06 +00:00
Modify department group judgment conditions (#2875)
This commit is contained in:
@@ -29,8 +29,6 @@ const propTypes = {
|
|||||||
groupID: PropTypes.string,
|
groupID: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
const DEPARETMENT_GROUP_ONWER_NAME = 'system admin';
|
|
||||||
|
|
||||||
class GroupView extends React.Component {
|
class GroupView extends React.Component {
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -78,7 +76,7 @@ class GroupView extends React.Component {
|
|||||||
let emptyTip = this.getEmptyTip(currentGroup);
|
let emptyTip = this.getEmptyTip(currentGroup);
|
||||||
let isStaff = currentGroup.admins.indexOf(username) > -1; //for item operations
|
let isStaff = currentGroup.admins.indexOf(username) > -1; //for item operations
|
||||||
let isOwner = currentGroup.owner === username ? true : false;
|
let isOwner = currentGroup.owner === username ? true : false;
|
||||||
let isDepartmentGroup = currentGroup.owner === DEPARETMENT_GROUP_ONWER_NAME;
|
let isDepartmentGroup = currentGroup.parent_group_id !== 0;
|
||||||
this.setState({
|
this.setState({
|
||||||
emptyTip: emptyTip,
|
emptyTip: emptyTip,
|
||||||
currentGroup: currentGroup,
|
currentGroup: currentGroup,
|
||||||
|
Reference in New Issue
Block a user