Skip to content

Commit

Permalink
BUGFIX: edit category button should only be shown to staff members
Browse files Browse the repository at this point in the history
  • Loading branch information
ZogStriP committed Jan 19, 2014
1 parent c4cbf93 commit 5ec22cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function buildCategoryRoute(filter, params) {

var opts = { category: model, filterMode: filterMode };
opts.noSubcategories = params && params.no_subcategories;
opts.canEditCategory = Discourse.User.current('staff');
opts.canEditCategory = Discourse.User.currentProp('staff');
this.controllerFor('navigationCategory').setProperties(opts);

return Discourse.TopicList.list(listFilter, params).then(function(list) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Discourse.DiscoveryTopCategoryRoute = Discourse.Route.extend({

var opts = { category: model, filterMode: filterMode };
opts.noSubcategories = noSubcategories;
opts.canEditCategory = Discourse.User.current('staff');
opts.canEditCategory = Discourse.User.currentProp('staff');
this.controllerFor('navigationCategory').setProperties(opts);

return Discourse.TopList.find(filterMode).then(function(list) {
Expand Down

0 comments on commit 5ec22cd

Please sign in to comment.