MCPcopy Create free account
hub / github.com/alephdata/aleph / selectAdmin

Function selectAdmin

ui/src/selectors.js:179–183  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

177}
178
179export function selectAdmin(state) {
180 const role = selectCurrentRole(state);
181 /* eslint-disable camelcase */
182 return role.is_admin || false;
183}
184
185export function selectAlertResult(state, query) {
186 return selectResult(state, query);

Callers 1

mapStateToPropsFunction · 0.90

Calls 1

selectCurrentRoleFunction · 0.85

Tested by

no test coverage detected