mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
cleanup comment
This commit is contained in:
@@ -119,7 +119,6 @@ export default function SettingsSidebar() {
|
|||||||
}, [location.pathname]);
|
}, [location.pathname]);
|
||||||
|
|
||||||
const canShowItem = (item: DataItem) => {
|
const canShowItem = (item: DataItem) => {
|
||||||
// For items with showDisabledInCommunity, always show them but in disabled state
|
|
||||||
if (item.showDisabledInNonEE && item.isEnterprise) {
|
if (item.showDisabledInNonEE && item.isEnterprise) {
|
||||||
// Check admin permission regardless of license
|
// Check admin permission regardless of license
|
||||||
return item.isAdmin ? isAdmin : true;
|
return item.isAdmin ? isAdmin : true;
|
||||||
|
|||||||
Reference in New Issue
Block a user