1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

fix bug of share to user/group (#4468)

when update to 'admin' permission
This commit is contained in:
lian
2020-03-04 12:06:07 +08:00
committed by GitHub
parent 51e9295b46
commit b39b71fdfc
2 changed files with 2 additions and 2 deletions

View File

@@ -279,8 +279,8 @@ class ShareToGroup extends React.Component {
let sharedItemGroupID = sharedItem.group_info.id;
if (groupID === sharedItemGroupID) {
sharedItem.permission = permission;
sharedItem.is_admin = permission === 'admin' ? true : false;
}
sharedItem.is_admin = permission === 'admin' ? true : false;
return sharedItem;
});
this.setState({sharedItems: sharedItems});