Fixed example tag usages not showing up

This commit is contained in:
Marcin Kurczewski 2014-11-22 17:54:37 +01:00
parent a7c6e9f043
commit cd688b25a3

View file

@ -38,6 +38,7 @@ App.Presenters.TagPresenter = function(
privileges.canViewHistory = auth.hasPrivilege(auth.privileges.viewHistory); privileges.canViewHistory = auth.hasPrivilege(auth.privileges.viewHistory);
privileges.canDelete = auth.hasPrivilege(auth.privileges.deleteTags); privileges.canDelete = auth.hasPrivilege(auth.privileges.deleteTags);
privileges.canMerge = auth.hasPrivilege(auth.privileges.mergeTags); privileges.canMerge = auth.hasPrivilege(auth.privileges.mergeTags);
privileges.canViewPosts = auth.hasPrivilege(auth.privileges.viewPosts);
promise.wait( promise.wait(
util.promiseTemplate('tag'), util.promiseTemplate('tag'),
@ -162,6 +163,7 @@ App.Presenters.TagPresenter = function(
util: util, util: util,
post: post, post: post,
query: {query: tag.name}, query: {query: tag.name},
canViewPosts: privileges.canViewPosts,
}) + '</li>'); }) + '</li>');
$target.append($post); $target.append($post);
}); });