Skip to content

Commit

Permalink
Remove regexp for auth item names
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeroff authored Jul 9, 2016
1 parent d74d369 commit 0b3cb2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/AuthItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ public function rules()
{
return [
['name', 'required'],
['name', 'match', 'pattern' => '/^[\w][\w-.:]+[\w]$/'],
[['name', 'description', 'rule'], 'trim'],
['name', function () {
if ($this->manager->getItem($this->name) !== null) {
Expand Down Expand Up @@ -239,4 +238,4 @@ abstract public function getUnassignedItems();
* @return \yii\rbac\Item
*/
abstract protected function createItem($name);
}
}

0 comments on commit 0b3cb2f

Please sign in to comment.