Exemplo n.º 1
0
 /**
  * It's called after the user record we are attached to is loaded. We read the privileges from the acl key of the
  * user object's parameters
  *
  * @return  void
  */
 public function onAfterLoad()
 {
     if (!empty($this->privileges)) {
         foreach ($this->privileges as $key => $value) {
             $this->privileges[$key] = $this->user->getParameters()->get('acl.' . $this->name . '.' . $key, $value);
         }
     }
 }