From 2e520da0067b8b8a3e9d0963ef3f06290633f040 Mon Sep 17 00:00:00 2001 From: voldemort <5692900+yell0wsuit@users.noreply.github.com> Date: Wed, 23 Jul 2025 01:45:22 +0700 Subject: [PATCH] Add module docstring to device allowed check function for improved documentation and clarity --- custom_functions/user_checks/device_allowed.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/custom_functions/user_checks/device_allowed.py b/custom_functions/user_checks/device_allowed.py index ad3a5fc..1e2d283 100644 --- a/custom_functions/user_checks/device_allowed.py +++ b/custom_functions/user_checks/device_allowed.py @@ -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