original_string: public function hasPrivilege($privilege, $current = true)
      {
          if (! $this->acl) {
              return true;
          }
          $role = $this->getRole($current);
  
          return $this->acl->isAllowed($role, null, $privilege);
      }
code: public function hasPrivilege($privilege, $current = true)
      {
          if (! $this->acl) {
              return true;
          }
          $role = $this->getRole($current);
  
          return $this->acl->isAllowed($role, null, $privilege);
      }
code_tokens: public function hasPrivilege ( $ privilege , $ current = true ) { if ( ! $ this -> acl ) { return true ; } $ role = $ this -> getRole ( $ current ) ; return $ this -> acl -> isAllowed ( $ role , null , $ privilege ) ; }
docstring: Returns true if the role of the current user has the given privilege
  
  @param string $privilege
  @param boolean $current Checks value for current role (when false for normal role);
  @return bool
docstring_tokens: Returns true if the role of the current user has the given privilege