mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:42:44 +08:00
Mods can edit categories
This commit is contained in:
parent
3257bef387
commit
42564c9ce7
|
@ -26,7 +26,7 @@ Discourse.ListCategoriesController = Discourse.ObjectController.extend({
|
|||
|
||||
canEdit: function() {
|
||||
var u = Discourse.User.current();
|
||||
return u && u.admin;
|
||||
return u && u.staff;
|
||||
}.property(),
|
||||
|
||||
// clear a pinned topic
|
||||
|
|
|
@ -105,7 +105,7 @@ Discourse.ListController = Discourse.Controller.extend({
|
|||
canEditCategory: function() {
|
||||
if( this.present('category') ) {
|
||||
var u = Discourse.User.current();
|
||||
return u && u.admin;
|
||||
return u && u.staff;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user