부대 번호를 부대장 ID로 변경
This commit is contained in:
1 parent
477ec440bc
commit
c8422421ab
12 files changed
+49
-77
No files matched your search
@@ -24,11 +24,7 @@ class MustBeTroopLeader extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
//XXX: 부대장인지 알 수가 없음
|
||||
$db = DB::db();
|
||||
$troopLeader = $db->queryFirstField('SELECT no FROM troop WHERE troop = %i', $this->general['troop']);
|
||||
|
||||
if($troopLeader == $this->general['no']){
|
||||
if($this->general['no'] == $this->general['troop']){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user