Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/models/ActivityCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public static function checkData($data){
}

public static function checkPremission($aid, $student_id = ''){
$result = DB::select('select count(name) count from namelist_member join activity where activity.aid = ? and namelist_member.student_id = ?',array($aid, $student_id));
$result = DB::select('select activity_type, count(name) count from namelist_member join activity on activity.nid = namelist_member.nid where activity.aid = ? and namelist_member.student_id = ?',array($aid, $student_id));

if($result[0]->count == 0){
if($result[0]->activity_type == 'strict_check' && $result[0]->count == 0){
return false;
}else{
return true;
Expand Down