original_string: public function getRolesByPrivilege($privilege)
      {
          $roles = array();
  
          if ($this->acl) {
              foreach ($this->acl->getRoles() as $role) {
                  if ($this->acl->isAllowed($role, null, $privilege)) {
                      //Do not translate, only make first one uppercase
                      $roles[$role] = ucfirst($role);
                  }
              }
          }
  
          return $roles;
      }
code: public function getRolesByPrivilege($privilege)
      {
          $roles = array();
  
          if ($this->acl) {
              foreach ($this->acl->getRoles() as $role) {
                  if ($this->acl->isAllowed($role, null, $privilege)) {
                      //Do not translate, only make first one uppercase
                      $roles[$role] = ucfirst($role);
                  }
              }
          }
  
          return $roles;
      }
code_tokens: public function getRolesByPrivilege ( $ privilege ) { $ roles = array ( ) ; if ( $ this -> acl ) { foreach ( $ this -> acl -> getRoles ( ) as $ role ) { if ( $ this -> acl -> isAllowed ( $ role , null , $ privilege ) ) { //Do not translate, only make first one uppercase $ roles [ $ role ] = ucfirst ( $ role ) ; } } } return $ roles ; }
docstring: Returns the roles in the acl with the privilege
  
  @return array roleId => ucfirst(roleId)
docstring_tokens: Returns the roles in the acl with the privilege