mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
update
This commit is contained in:
@@ -100,6 +100,7 @@ class ViewFileText extends React.Component {
|
|||||||
getParticipants = () => {
|
getParticipants = () => {
|
||||||
seafileAPI.listFileParticipants(repoID, filePath).then((res) => {
|
seafileAPI.listFileParticipants(repoID, filePath).then((res) => {
|
||||||
const participants = res.data.participant_list;
|
const participants = res.data.participant_list;
|
||||||
|
if (participants.length === 0) return;
|
||||||
this.setState({ participants: participants });
|
this.setState({ participants: participants });
|
||||||
this.isParticipant = participants.every((participant) => {
|
this.isParticipant = participants.every((participant) => {
|
||||||
return participant.email == username;
|
return participant.email == username;
|
||||||
|
Reference in New Issue
Block a user