1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00
This commit is contained in:
Michael An
2019-07-01 10:16:12 +08:00
parent 4b86ab0d1b
commit e763ccd175

View File

@@ -100,6 +100,7 @@ class ViewFileText extends React.Component {
getParticipants = () => {
seafileAPI.listFileParticipants(repoID, filePath).then((res) => {
const participants = res.data.participant_list;
if (participants.length === 0) return;
this.setState({ participants: participants });
this.isParticipant = participants.every((participant) => {
return participant.email == username;