admin fix
This commit is contained in:
parent
c42cf6d52b
commit
3bccb97ca3
|
|
@ -481,7 +481,7 @@ class BiometricDeviceDetails(models.Model):
|
||||||
conn = self.device_connect(zk)
|
conn = self.device_connect(zk)
|
||||||
if conn:
|
if conn:
|
||||||
try:
|
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
|
conn.unlock(admin_user_id) # Unlock using the admin user ID
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise UserError(_("Failed to unlock door: %s") % str(e))
|
raise UserError(_("Failed to unlock door: %s") % str(e))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue