selectDashboardPermissions
Home > @gooddata/sdk-ui-dashboard > selectDashboardPermissions
selectDashboardPermissions variable
This selector returns user's dashboard permissions.
Signature:
selectDashboardPermissions: import("@reduxjs/toolkit").OutputSelector<DashboardState, import("@gooddata/sdk-model").IDashboardPermissions, (res: import("./dashboardPermissionsState").DashboardPermissionsState) => import("@gooddata/sdk-model").IDashboardPermissions>
Remarks
It is expected that the selector is called only after the dashboard permission state is correctly initialized. Invocations before initialization lead to invariant errors.
If the permission is not supported by GoodData Cloud and GoodData.CN backends, the selector always returns false
value.
In case you need multiple permissions available in your application, use this common selector.