$rights = explode(':', $perm);
foreach ($rights as $right) {
if (($right{0} == '!' && $this->hasFlag(substr($right, 1))) || !$this->hasFlag($right)) {
$rights = explode(':', $perm);
foreach ($rights as $right) {
if (($right{0} == '!' && $this->hasFlag(substr($right, 1))) || !$this->hasFlag($right)) {