🐛 Fix 'in_array' function #47

Merged
luketainton merged 1 commits from bug/issue-46 into main 2020-08-09 16:04:43 +00:00
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; }
}