细节优化
Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
parent
a61566d4d2
commit
72b0f86cff
@ -55,6 +55,9 @@ class ProjectMember extends CommonModel
|
|||||||
// throw new \Exception('该成员尚未加入项目', 1);
|
// throw new \Exception('该成员尚未加入项目', 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if ($hasJoined['is_owner']) {
|
||||||
|
throw new \Exception('不能移除创建者', 1);
|
||||||
|
}
|
||||||
$result = $hasJoined->delete();
|
$result = $hasJoined->delete();
|
||||||
Project::projectHook(getCurrentMember()['code'], $projectCode, 'removeMember', $memberCode);
|
Project::projectHook(getCurrentMember()['code'], $projectCode, 'removeMember', $memberCode);
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user