Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Fix remove privilige from users rank
Browse files Browse the repository at this point in the history
Fix the ability to remove some privilege of some alliance ranks
  • Loading branch information
Jbaukens committed Feb 14, 2016
1 parent 8267cd5 commit 5d25ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/pages/game/ShowAlliancePage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1288,12 +1288,12 @@ protected function adminPermissionsSend()

unset($rowData['rankName']);

foreach($rowData as $key => $value)
foreach($this->availableRanks as $key => $value)
{
if(isset($this->availableRanks[$key]) && $this->rights[$this->availableRanks[$key]])
{
$sql .= ', `'.$this->availableRanks[$key].'` = :'.$this->availableRanks[$key];
$params[':'.$this->availableRanks[$key]] = $value == 1 ? 1 : 0;
$params[':'.$this->availableRanks[$key]] = (isset($rowData[$key])) == 1 ? 1 : 0;
}
}

Expand Down

0 comments on commit 5d25ab4

Please sign in to comment.