diff --git a/Latest_Group_Project/Booking_System/__pycache__/decorators.cpython-311.pyc b/Latest_Group_Project/Booking_System/__pycache__/decorators.cpython-311.pyc index 44a1969fd53490cfe5e15cf8d6d845e082edeb6e..159f0b01a86767ef69aae7fbc0346b3d6f94f44d 100644 Binary files a/Latest_Group_Project/Booking_System/__pycache__/decorators.cpython-311.pyc and b/Latest_Group_Project/Booking_System/__pycache__/decorators.cpython-311.pyc differ diff --git a/Latest_Group_Project/Booking_System/decorators.py b/Latest_Group_Project/Booking_System/decorators.py index 84df3772dd65b9fc5aeac2367fea908cc6fc06c0..34b9be8753de44d2ef73b001cc31c9ca6d48ee95 100644 --- a/Latest_Group_Project/Booking_System/decorators.py +++ b/Latest_Group_Project/Booking_System/decorators.py @@ -8,12 +8,12 @@ def is_superuser(user): return False def is_cinema_manager(user): - if user.is_authenticated and user.user_type == 1: + if (user.is_authenticated and user.user_type == 1) or (user.is_authenticated and user.user_type == 0): return True return False def is_account_manager(user): - if user.is_authenticated and user.user_type == 2: + if (user.is_authenticated and user.user_type == 2) or (user.is_authenticated and user.user_type == 0): return True return False diff --git a/Latest_Group_Project/Club_Rep_User_LogIn.txt b/Latest_Group_Project/Club_Rep_User_LogIn.txt index c471d13cc07ebf64790075193ba1f6ef76516f21..dd6211e2bff7bd9a0d153fa41da45c4d5f0f854d 100644 --- a/Latest_Group_Project/Club_Rep_User_LogIn.txt +++ b/Latest_Group_Project/Club_Rep_User_LogIn.txt @@ -1,7 +1,3 @@ -Club Name: Club1 -Club rep number: 7b00939306 -Password: Q5PgGHemQ - Club Name: Club1 Club rep number: a1f751324e Password: lSf2wJUtD