mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
privacy page
This commit is contained in:
20
public/src/forum/accountheader.js
Normal file
20
public/src/forum/accountheader.js
Normal file
@@ -0,0 +1,20 @@
|
||||
(function() {
|
||||
var yourid = templates.get('yourid'),
|
||||
theirid = templates.get('theirid');
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var editLink = $('#editLink');
|
||||
var settingsLink = $('#settingsLink');
|
||||
|
||||
if(yourid === "0") {
|
||||
editLink.hide();
|
||||
settingsLink.hide();
|
||||
}
|
||||
else if(yourid !== theirid) {
|
||||
editLink.hide();
|
||||
settingsLink.hide();
|
||||
}
|
||||
});
|
||||
|
||||
}());
|
||||
Reference in New Issue
Block a user