v1.6.0/admin only mode
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = (req, res, next) => {
|
||||
bodydata.uid = user.uid;
|
||||
req.body = JSON.stringify(bodydata);
|
||||
}
|
||||
if (req.method === 'GET' || req.method === 'DELETE') {
|
||||
if (req.method === 'GET' || req.method === 'DELETE' || req.method === 'PUT') {
|
||||
req.body = JSON.stringify({ uid: user.uid });
|
||||
}
|
||||
return next();
|
||||
|
||||
Reference in New Issue
Block a user