Skip to content

Commit

Permalink
fix: admin privileges client-side regression
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jul 3, 2020
1 parent 89062d8 commit f3441fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/admin/manage/privileges.js
Expand Up @@ -11,7 +11,7 @@ define('admin/manage/privileges', [
var cid;

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) {
cid = parseInt(category.cid, 10);
Expand Down

0 comments on commit f3441fc

Please sign in to comment.