first pass at #773

v1.18.x
Julian Lam 11 years ago
parent 397861c3cc
commit bafc8caaf5

@ -8,7 +8,9 @@
</ol> </ol>
<div> <div>
<!-- IF privileges.write -->
<button id="new_post" class="btn btn-primary {show_topic_button}">[[category:new_topic_button]]</button> <button id="new_post" class="btn btn-primary {show_topic_button}">[[category:new_topic_button]]</button>
<!-- ENDIF privileges.write -->
<!-- IF !disableSocialButtons --> <!-- IF !disableSocialButtons -->
<div class="inline-block pull-right"> <div class="inline-block pull-right">
<a href="#" id="facebook-share"><i class="fa fa-facebook-square fa-2x"></i></a>&nbsp; <a href="#" id="facebook-share"><i class="fa fa-facebook-square fa-2x"></i></a>&nbsp;

@ -190,6 +190,9 @@ var path = require('path'),
return next(err); return next(err);
} }
// Add privilege data to template data
data.privileges = privileges;
if (data && parseInt(data.disabled, 10) === 0) { if (data && parseInt(data.disabled, 10) === 0) {
res.json(data); res.json(data);
} else { } else {

Loading…
Cancel
Save