1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix temporaneo #191

This commit is contained in:
Thomas Zilio
2018-03-24 13:56:49 +01:00
parent e8b42cdea1
commit 6e2940795e
3 changed files with 11 additions and 4 deletions

View File

@@ -56,7 +56,9 @@ $custom = [
'vettore' => $records[0]['vettore'],
];
/*
// Controllo sui permessi
if ($id_cliente != Auth::user()['idanagrafica'] && !Auth::admin()) {
if ($user['gruppo'] == 'Cliente' && $id_cliente != $user['idanagrafica']) {
die(tr('Non hai i permessi per questa stampa!'));
}
*/