mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-01 16:36:45 +01:00
Risoluzione di un bug sui permessi nella Dashboard
This commit is contained in:
parent
2e4584309b
commit
f3b07fabf8
@ -10,7 +10,7 @@ Benvenuti nella wiki di OpenSTAManager!
|
||||
> Per rispondere a queste esigenze nasce il gestionale per il servizio di assistenza tecnica OpenSTAManager, che rende disponibile un supporto informatico per la gestione di questa tipologia di pratiche in un contesto talvolta povero di alternative.
|
||||
|
||||
La documentazione del progetto presenta informazioni valide a partire dalla versione 2.3 dello stesso.
|
||||
Si avverte pertanto che questa documentazione non è utilizzabile con efficacia per le versioni precedenti del progetto, con particolare riguardo verso le strutture relative ad assets e framework, oltre che alle procedure di sviluppo di moduli.
|
||||
Si avverte pertanto che questa documentazione non è utilizzabile con efficacia per le versioni precedenti del progetto, con particolare riguardo verso le strutture relative ad assets e framework, oltre che alle procedure di sviluppo dei moduli.
|
||||
|
||||
<!-- TOC depthFrom:2 depthTo:6 orderedList:false updateOnSave:true withLinks:true -->
|
||||
|
||||
|
14
lib/util.php
14
lib/util.php
@ -194,7 +194,6 @@ if (!function_exists('download')) {
|
||||
{
|
||||
if (!headers_sent()) {
|
||||
$filename = !empty($filename) ? $filename : basename($file);
|
||||
$content = !is_file($file) ? $file : file_get_contents($file);
|
||||
|
||||
// Required for some browsers
|
||||
if (ini_get('zlib.output_compression')) {
|
||||
@ -209,13 +208,18 @@ if (!function_exists('download')) {
|
||||
header('Cache-Control: private', false);
|
||||
|
||||
header('Content-Disposition: attachment; filename="'.basename(str_replace('"', '', $filename)).'";');
|
||||
header('Content-Type: application/force-download');
|
||||
header('Content-Type: application/octet-stream');
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
|
||||
ob_clean();
|
||||
flush();
|
||||
header('Content-Length: ' . filesize($file));
|
||||
|
||||
echo $content;
|
||||
$open = fopen($file, "rb");
|
||||
while(!feof($open))
|
||||
{
|
||||
print(fread($open, 1024*8));
|
||||
ob_flush();
|
||||
flush();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ switch (get('op')) {
|
||||
|
||||
$results[] = '
|
||||
{
|
||||
"id": "'.$rs[$i]['idintervento'].'",
|
||||
"id": "'.$rs[$i]['id'].'",
|
||||
"idtecnico":"'.$rs[$i]['idtecnico'].'",
|
||||
"title":"<b>Int. '.$rs[$i]['idintervento'].'</b> '.addslashes($rs[$i]['cliente']).'<br><b>'.tr('Tecnici').':</b> '.addslashes($rs[$i]['nome_tecnico']).'",
|
||||
"start": "'.$rs[$i]['orario_inizio'].'",
|
||||
|
@ -456,7 +456,7 @@ if (!empty(get_var('Abilitare orario lavorativo'))) {
|
||||
}
|
||||
},
|
||||
<?php
|
||||
if (Modules::getPermission($id_module) == 'rw') {
|
||||
if (Modules::getPermission('Interventi') == 'rw') {
|
||||
?>
|
||||
droppable: true,
|
||||
drop: function(date, jsEvent, ui, resourceId) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user