mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-05 20:11:26 +01:00
first pass at #773
This commit is contained in:
@@ -190,6 +190,9 @@ var path = require('path'),
|
||||
return next(err);
|
||||
}
|
||||
|
||||
// Add privilege data to template data
|
||||
data.privileges = privileges;
|
||||
|
||||
if (data && parseInt(data.disabled, 10) === 0) {
|
||||
res.json(data);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user