Cybersecurity - Security Architecture and Design
A developer wrote this code to enforce the 'Fail-Safe Defaults' pattern:
What is the main problem with this code?
def check_access(user):
if user == 'admin':
return True
elif user == 'guest':
return False
# Missing return for other usersWhat is the main problem with this code?
