Skip to content

Commit

Permalink
fix - permission level for Guest
Browse files Browse the repository at this point in the history
  • Loading branch information
maniamartial committed Oct 28, 2024
1 parent 9b26db9 commit f1dfb0e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def load_punch_logs():
pass

def get_shift(biometric_id):
frappe.flags.ignore_permissions = True
user = frappe.get_list("Employee", filters={"attendance_device_id": biometric_id}, fields=["name", "default_shift"])
if user:
first_user = user[0]
Expand Down

0 comments on commit f1dfb0e

Please sign in to comment.