mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
fix: admin privileges client-side regression
This commit is contained in:
@@ -11,7 +11,7 @@ define('admin/manage/privileges', [
|
|||||||
var cid;
|
var cid;
|
||||||
|
|
||||||
Privileges.init = function () {
|
Privileges.init = function () {
|
||||||
cid = isNaN(parseInt(ajaxify.data.cid, 10)) ? 'admin' : ajaxify.data.cid;
|
cid = isNaN(parseInt(ajaxify.data.selectedCategory.cid, 10)) ? 'admin' : ajaxify.data.selectedCategory.cid;
|
||||||
|
|
||||||
categorySelector.init($('[component="category-selector"]'), function (category) {
|
categorySelector.init($('[component="category-selector"]'), function (category) {
|
||||||
cid = parseInt(category.cid, 10);
|
cid = parseInt(category.cid, 10);
|
||||||
|
|||||||
Reference in New Issue
Block a user