Remove Role::addRestriction()

Method is not used.

refs #10887
This commit is contained in:
Eric Lippmann 2016-03-29 11:19:30 +02:00
parent 08b70267cd
commit 123488cfc0
1 changed files with 0 additions and 17 deletions

View File

@ -85,23 +85,6 @@ class Role
return $this;
}
/**
* Add a restriction to the role
*
* @param string $name
* @param string $restriction
*
* @return $this
*/
public function addRestriction($name, $restriction)
{
if (! isset($this->restrictions[$name])) {
$this->restrictions[$name] = array();
}
$this->restrictions[$name][] = $restriction;
return $this;
}
/**
* Get the restrictions of the role
*