✨ Creation of reopen request feature (#68)
* Creation of button and SQL * Movement of buttons * Changes to authorisation requirements * Update to errors * 🎨 Tidy up a little Signed-off-by: Luke Tainton <luke@tainton.uk> * 🎨 Fix comment Signed-off-by: Luke Tainton <luke@tainton.uk> Co-authored-by: Luke Tainton <luke@tainton.uk>
This commit was merged in pull request #68.
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
|
||||
$request = get_request($db, $_GET['rid']);
|
||||
$authorised_users = get_subscribers($db, $request);
|
||||
$is_authorised = isAuthorised($_SESSION['uuid'], $authorised_users, $request);
|
||||
if ($_SESSION['uuid'] == $request['created_by']) {
|
||||
$is_authorised = true;
|
||||
} else {
|
||||
$is_authorised = false;
|
||||
};
|
||||
|
||||
// Close request
|
||||
if ($is_authorised == true) {
|
||||
|
||||
Reference in New Issue
Block a user