From 6151b07b67e563ae8f2e551355127b50a08cbe03 Mon Sep 17 00:00:00 2001 From: OmarBlue <omarescala17@gmail.com> Date: Sat, 6 May 2023 16:14:57 +0100 Subject: [PATCH] Fixed some errors for permissions superuser --- .../__pycache__/decorators.cpython-311.pyc | Bin 2479 -> 2619 bytes .../Booking_System/decorators.py | 4 ++-- Latest_Group_Project/Club_Rep_User_LogIn.txt | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) 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 GIT binary patch delta 252 zcmZ24yjz5KIWI340|NuY!Mw1PTN`;-FiyV99LfHYk%57sh-q>!v-D(kCh5r)Eb<C2 zS8M_=D4AXei@Fk)av>x0Qds7Nu*@6$!W|_yxCJ^)CtEX1Lo_oXG*4lYVf;L~lErzl z1GCR$Hf9Y*>B;)cZLD$(3=EQ!<(ZTx-(`+slLBdwoovfu%&Wk_zyOjgl3-w9*u0&k zgh^BfB&!P|G(m(Gh|r$wz`j^O8^lBi>P`O4uFYsLS)OBts5D3lY!JxAA_EXtfASd) M2}YC2PdQEj0Pr+E-T(jq delta 226 zcmdljvR;^XIWI340|Ntt2a9h?{zl#vj1$kBGQDJ+e3n^yvH_Fy<YpEHum}@aM1ffb zDl+*rvnHz)0|SG|<OUYyiRVox2eN1}%1*9fX=IaRU|=Yc0c((BmEe?TU|^7AU|=Yo zY|HGt*@HEoNmLu8LI*@>fCx<xp*8so`(gnt5ECJ&JGq`in^AxAYK|FtAlr&$LGmCI ii}XP(JrE%XBKQ~>7=Cfs<mRW8=A_yc8BZ?cJOuzd7&OBG diff --git a/Latest_Group_Project/Booking_System/decorators.py b/Latest_Group_Project/Booking_System/decorators.py index 84df3772..34b9be87 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 c471d13c..dd6211e2 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 -- GitLab