Luuk Peters (ProudNerds)
01/16/2025, 3:04 PMjs
export const manifests: Array<UmbExtensionManifest> = [
{
name: "Website creation dashboard",
alias: "Dashboard.WebsiteCreation",
type: 'dashboard',
weight: -99,
js: () => import("./website-create-dashboard"),
meta: {
label: "#dashboardTabs_websiteCreationDashboard",
pathname: "website-creation-dashboard"
},
conditions: [
{
alias: 'Umb.Condition.SectionAlias',
match: 'Umb.Section.Content'
}
],
}
];
This works great and the dashboard is limited to the content section. However, I only want to show this dashboard to administrators. In the old manifest file, you could simply use 'access' property:
"access": [
{ "grant": "admin" }
],
However, there doesn't seem to be a condition for user groups (https://docs.umbraco.com/umbraco-cms/customizing/extending-overview/extension-conditions#core-conditions-types). Although I can probably make a custom condition according to https://docs.umbraco.com/umbraco-cms/customizing/extending-overview/extension-types/condition#make-your-own-conditions it strikes me as very odd that there is nothing available to filter on user group. Am I missing something, or do I really need to create that condition myself?Jacob Overgaard
01/16/2025, 8:08 PMUmb.Condition.CurrentUser.IsAdmin
you can put on your dashboard. For other groups, it doesn't look like there is a condition you can use yet.Jacob Overgaard
01/16/2025, 9:15 PMLuuk Peters (ProudNerds)
01/17/2025, 8:12 AMJacob Overgaard
01/17/2025, 8:14 AM