Skip to content

Commit

Permalink
Allow directly attach rule using rule class name
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmunir committed Apr 14, 2016
1 parent b2167b7 commit d29660b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/AuthItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public function checkRule()
$rule->name = $name;
Yii::$app->getAuthManager()->add($rule);
} else {
$this->addError('ruleName', Yii::t('rbac-admin', 'Invalid rule {value}', ['value' => $name]));
$this->addError('ruleName', Yii::t('rbac-admin', 'Invalid rule "{value}"', ['value' => $name]));
}
} catch (\Exception $exc) {
$this->addError('ruleName', Yii::t('rbac-admin', 'Rule {value} does not exists', ['value' => $name]));
$this->addError('ruleName', Yii::t('rbac-admin', 'Rule "{value}" does not exists', ['value' => $name]));
}
}
}
Expand Down

0 comments on commit d29660b

Please sign in to comment.