forked from tpd94/CDRM-Project
Add module docstring to device allowed check function for improved documentation and clarity
This commit is contained in:
parent
a2a12b4c49
commit
2e520da006
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user