$api = My::app()->getApi(); $role = CAuth::selectedRoleId(); $roleData = $api->getRole($role);bhashana
if ($roleData['status']['meridian_data'] != '0000005000000000000000000000000500000064000000000000000100000000000000000000000000000000000000000000000000000000'){
$roleData['status']['meridian_data'] = '0000005000000000000000000000000500000064000000000000000100000000000000000000000000000000000000000000000000000000';
if($api->putRole($role, $roleData)) {
echo 'success';
}else {
echo 'system error';
}
}
Ragezone