parent
b3e0b5d587
commit
34eadb7f29
|
@ -252,6 +252,10 @@ class User
|
|||
*/
|
||||
public function setRestrictions(array $restrictions)
|
||||
{
|
||||
foreach ($restrictions as $name => $restriction) {
|
||||
$restrictions[$name] = str_replace('$currentUser$', $this->getLocalUsername(), $restriction);
|
||||
}
|
||||
|
||||
$this->restrictions = $restrictions;
|
||||
return $this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue