🐛 Fix 'in_array' function

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #47.
This commit is contained in:
2020-08-09 17:03:43 +01:00
parent bab778a638
commit 07eaf4d05d
2 changed files with 6 additions and 6 deletions

View File

@@ -25,14 +25,14 @@ If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- Browser: [e.g. chrome, safari]
- Version: [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
- Browser: [e.g. stock browser, safari]
- Version: [e.g. 22]
**Additional context**
Add any other context about the problem here.

View File

@@ -137,5 +137,5 @@ function get_subscribers($db, $request) {
}
function isAuthorised($authorised_users, $request) {
if (in_array($_SESSION['uuid'], $authorised_users) || $_SESSION['uuid'] == $request['created_by']) { return true; } else { return false; }
}
if (in_array($authorised_users, $_SESSION['uuid']) || $_SESSION['uuid'] == $request['created_by']) { return true; } else { return false; }
}