mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-16 11:30:55 +01:00
Fix eliminazione utenti
This commit is contained in:
parent
fa289c8c29
commit
2d8e65a46c
@ -152,7 +152,7 @@ switch (filter('op')) {
|
||||
/* Controlla che non posso auto eliminarmi */
|
||||
if (Auth::user()->id != $utente->id) {
|
||||
/* Controlla che l'utente che voglio eliminare non presenti logs associati */
|
||||
if (count($utente->logs) > 0) {
|
||||
if (count($utente->logs) == 0) {
|
||||
if ($dbo->query('DELETE FROM zz_users WHERE id='.prepare($id_utente))) {
|
||||
flash()->info(tr('Utente eliminato!'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user