mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-19 05:52:57 +01:00
first pass at #773
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
</ol>
|
||||
|
||||
<div>
|
||||
<!-- IF privileges.write -->
|
||||
<button id="new_post" class="btn btn-primary {show_topic_button}">[[category:new_topic_button]]</button>
|
||||
<!-- ENDIF privileges.write -->
|
||||
<!-- IF !disableSocialButtons -->
|
||||
<div class="inline-block pull-right">
|
||||
<a href="#" id="facebook-share"><i class="fa fa-facebook-square fa-2x"></i></a>
|
||||
|
||||
@@ -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