权限判断修改

master
ELF 5 years ago
parent 0e0c1798f4
commit 3af87434b9

@ -200,6 +200,9 @@ class ApplyService {
public function checkSociatyPerm($promote, $game)
{
if ($game['apply_auth'] == 1) {
return true;
}
$promoteService = new PromoteService();
$topPromote = $promoteService->getTopPromote($promote);
$record = M('sociaty_games', 'tab_')->where(['game_id' => $game['id'], 'promote_id' => $topPromote['id']])->find();

Loading…
Cancel
Save