🐛 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:
8
.github/ISSUE_TEMPLATE/bug_report.md
vendored
8
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -25,14 +25,14 @@ If applicable, add screenshots to help explain your problem.
|
|||||||
|
|
||||||
**Desktop (please complete the following information):**
|
**Desktop (please complete the following information):**
|
||||||
- OS: [e.g. iOS]
|
- OS: [e.g. iOS]
|
||||||
- Browser [e.g. chrome, safari]
|
- Browser: [e.g. chrome, safari]
|
||||||
- Version [e.g. 22]
|
- Version: [e.g. 22]
|
||||||
|
|
||||||
**Smartphone (please complete the following information):**
|
**Smartphone (please complete the following information):**
|
||||||
- Device: [e.g. iPhone6]
|
- Device: [e.g. iPhone6]
|
||||||
- OS: [e.g. iOS8.1]
|
- OS: [e.g. iOS8.1]
|
||||||
- Browser [e.g. stock browser, safari]
|
- Browser: [e.g. stock browser, safari]
|
||||||
- Version [e.g. 22]
|
- Version: [e.g. 22]
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|||||||
@@ -137,5 +137,5 @@ function get_subscribers($db, $request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isAuthorised($authorised_users, $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; }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user