|
|
@@ -371,7 +371,7 @@ $app->delete('/plugins/invites/{code}', function ($request, $response, $args) {
|
|
|
*/
|
|
|
$Invites = new Invites();
|
|
|
if ($Invites->checkRoute($request)) {
|
|
|
- if ($Invites->qualifyRequest($Invites->config['INVITES-Auth-include'], true)) {
|
|
|
+ if ($Invites->qualifyRequest(1, true)) {
|
|
|
$Invites->_invitesPluginDeleteCode($args['code']);
|
|
|
}
|
|
|
}
|
|
|
@@ -379,4 +379,4 @@ $app->delete('/plugins/invites/{code}', function ($request, $response, $args) {
|
|
|
return $response
|
|
|
->withHeader('Content-Type', 'application/json;charset=UTF-8')
|
|
|
->withStatus($GLOBALS['responseCode']);
|
|
|
-});
|
|
|
+});
|