<commit_before><?php
global $RBAC;

require_once 'classes/model/Users.php';
unset($_SESSION['CURRENT_USER']);
$oUser   = new Users();
$aFields = $oUser->load($_SESSION['USER_LOGGED']);

if ($RBAC->userCanAccess('PM_EDITPERSONALINFO') == 1) { //he has permitions for edit his profile
  $canEdit = false;
} else { //he has not permitions for edit his profile, so just view mode will be displayed
  $canEdit = true;    
}

//calculating the max upload file size;
$POST_MAX_SIZE   = ini_get('post_max_size');
$mul             = substr($POST_MAX_SIZE, -1);
$mul             = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
$postMaxSize     = (int)$POST_MAX_SIZE * $mul;

$UPLOAD_MAX_SIZE = ini_get('upload_max_filesize');
$mul             = substr($UPLOAD_MAX_SIZE, -1);
$mul             = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
$uploadMaxSize   = (int)$UPLOAD_MAX_SIZE * $mul;

if ( $postMaxSize < $uploadMaxSize ) $uploadMaxSize = $postMaxSize;

$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript('users/users', true );    //adding a javascript file .js
// $oHeadPublisher->addContent('users/users'); //adding a html file  .html.
$oHeadPublisher->assign('USR_UID', $aFields['USR_UID']);
$oHeadPublisher->assign('infoMode', true);
$oHeadPublisher->assign('canEdit', $canEdit);
$oHeadPublisher->assign('MAX_FILES_SIZE', ' (' . $UPLOAD_MAX_SIZE . ') ');
G::RenderPage('publish', 'extJs');<commit_msg>BUG 9298 No se puede cambiar los roles de los usuarios en PM SOLVED<commit_after><?php
global $RBAC;

require_once 'classes/model/Users.php';
unset($_SESSION['CURRENT_USER']);
$oUser   = new Users();
$aFields = $oUser->load($_SESSION['USER_LOGGED']);

if ($RBAC->userCanAccess('PM_EDITPERSONALINFO') == 1) { //he has permitions for edit his profile
  $canEdit = false;
} else { //he has not permitions for edit his profile, so just view mode will be displayed
  $canEdit = true;    
}

//calculating the max upload file size;
$POST_MAX_SIZE   = ini_get('post_max_size');
$mul             = substr($POST_MAX_SIZE, -1);
$mul             = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
$postMaxSize     = (int)$POST_MAX_SIZE * $mul;

$UPLOAD_MAX_SIZE = ini_get('upload_max_filesize');
$mul             = substr($UPLOAD_MAX_SIZE, -1);
$mul             = ($mul == 'M' ? 1048576 : ($mul == 'K' ? 1024 : ($mul == 'G' ? 1073741824 : 1)));
$uploadMaxSize   = (int)$UPLOAD_MAX_SIZE * $mul;

if ( $postMaxSize < $uploadMaxSize ) $uploadMaxSize = $postMaxSize;

$oHeadPublisher =& headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript('users/users', true );    //adding a javascript file .js
// $oHeadPublisher->addContent('users/users'); //adding a html file  .html.
$oHeadPublisher->assign('USR_UID', $aFields['USR_UID']);
$oHeadPublisher->assign('infoMode', true);
$oHeadPublisher->assign('canEdit', $canEdit);
$oHeadPublisher->assign('MAX_FILES_SIZE', ' (' . $UPLOAD_MAX_SIZE . ') ');
$oHeadPublisher->assign('MODE', '');
G::RenderPage('publish', 'extJs');
{'fraction_non_alphanumeric': 0.18461041060459102, 'fraction_numerical': 0.0316844487552538, 'mean_word_length': 4.515151515151516, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4219306', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1083, 'n_words': 243}