Add module docstring to device allowed check function for improved documentation and clarity

This commit is contained in:
voldemort 2025-07-23 01:45:22 +07:00
parent a2a12b4c49
commit 2e520da006

View File

@ -1,8 +1,11 @@
"""Module to check if the user is allowed to use the device."""
import os
import glob
def user_allowed_to_use_device(device, username):
"""Check if the user is allowed to use the device."""
base_path = os.path.join(os.getcwd(), "configs", "CDMs", username)
# Get filenames with extensions