fix: Navigate to settings should not be displayed to non-admins
closes #3432
This commit is contained in:
@@ -91,6 +91,8 @@ export const navigateToSettings = createAction({
|
||||
section: NavigationSection,
|
||||
shortcut: ["g", "s"],
|
||||
icon: <SettingsIcon />,
|
||||
visible: ({ stores }) =>
|
||||
stores.policies.abilities(stores.auth.team?.id || "").update,
|
||||
perform: () => history.push(organizationSettingsPath()),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user