admin fix

This commit is contained in:
raman 2025-09-02 13:50:46 +05:30
parent c42cf6d52b
commit 3bccb97ca3
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ class BiometricDeviceDetails(models.Model):
conn = self.device_connect(zk)
if conn:
try:
admin_user_id = 9 # You can implement a method for this
admin_user_id = 2580 # You can implement a method for this
conn.unlock(admin_user_id) # Unlock using the admin user ID
except Exception as e:
raise UserError(_("Failed to unlock door: %s") % str(e))