* fix error.

This commit is contained in:
z
2020-09-01 17:15:30 +08:00
parent 89bbfdfe22
commit ab578b96b1
+6 -6
View File
@@ -476,12 +476,12 @@ class programModel extends model
if(empty($program)) return true;
if($program->isCat and $action == 'group') return false;
if($program->isCat and $action == 'managemembers') return false;
if($program->isCat and $action == 'start') return false;
if($program->isCat and $action == 'activate') return false;
if($program->isCat and $action == 'suspend') return false;
if($program->isCat and $action == 'close') return false;
if(!empty($program->isCat) and $action == 'group') return false;
if(!empty($program->isCat) and $action == 'managemembers') return false;
if(!empty($program->isCat) and $action == 'start') return false;
if(!empty($program->isCat) and $action == 'activate') return false;
if(!empty($program->isCat) and $action == 'suspend') return false;
if(!empty($program->isCat) and $action == 'close') return false;
if($action == 'start') return $program->status == 'wait' or $program->status == 'suspended';
if($action == 'finish') return $program->status == 'wait' or $program->status == 'doing';